Skip to content

Commit fb8b5d7

Browse files
committed
VertOrientRelation
1 parent d7b6afd commit fb8b5d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extension/OOoLilyPond/OOoLilyPond.xba

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,10 @@ Sub InsertOOoLilyPondObjectViaClipboard (sIdentifier As String, sNumber As Strin
771771
oGraphic.HoriOrient = com.sun.star.text.HoriOrientation.NONE
772772
if iAnchor = com.sun.star.text.TextContentAnchorType.AT_CHARACTER Then
773773
oGraphic.HoriOrientRelation = com.sun.star.text.RelOrientation.CHAR
774+
oGraphic.VertOrientRelation = com.sun.star.text.RelOrientation.CHAR
774775
Else
775776
oGraphic.HoriOrientRelation = com.sun.star.text.RelOrientation.PRINT_AREA
777+
oGraphic.HoriOrientRelation = com.sun.star.text.RelOrientation.PRINT_AREA
776778
End If
777779

778780
if bShapeIsSelected And (iAnchor = iOriginalAnchor) And Not IsNull (oShapePosition) Then oGraphic.position = oShapePosition
@@ -869,8 +871,10 @@ Sub InsertOOoLilyPondObject (sIdentifier As String, sNumber As String, sAddition
869871
oGraphic.HoriOrient = com.sun.star.text.HoriOrientation.NONE
870872
if iAnchor = com.sun.star.text.TextContentAnchorType.AT_CHARACTER Then
871873
oGraphic.HoriOrientRelation = com.sun.star.text.RelOrientation.CHAR
874+
oGraphic.VertOrientRelation = com.sun.star.text.RelOrientation.CHAR
872875
Else
873876
oGraphic.HoriOrientRelation = com.sun.star.text.RelOrientation.PRINT_AREA
877+
oGraphic.HoriOrientRelation = com.sun.star.text.RelOrientation.PRINT_AREA
874878
End If
875879

876880
Else 'We are in Impress or Draw

0 commit comments

Comments
 (0)