Skip to content

Commit 59f9e69

Browse files
committed
"anchor at page" problem
1 parent 064bf18 commit 59f9e69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

extension/OOoLilyPond/OOoLilyPond.xba

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,11 @@ Sub InsertOOoLilyPondObject (sIdentifier As String, sNumber As String, sAddition
827827
if bShapeIsSelected And (iAnchor = iOriginalAnchor) And Not IsNull (oShapePosition) Then
828828
oGraphic.HoriOrientPosition = oShapePosition.X
829829
oGraphic.VertOrientPosition = oShapePosition.Y
830-
oGraphic.AnchorPageNo = iAnchorPageNo
830+
If iAnchor = 2 Then ' AT_PAGE
831+
oGraphic.AnchorPageNo = iAnchorPageNo
832+
' OpenOffice was crashed by this when iAnchor was AS_CHARACTER
833+
' No problem with LibreOffice
834+
End If
831835
End If
832836

833837
Case "SwXTextGraphicObject" ' Graphic is selected in Writer

0 commit comments

Comments
 (0)