https://issues.apache.org/ooo/show_bug.cgi?id=118043
--- Comment #1 from cdeval <[email protected]> --- The bug is still here (AOO 3.4). Run this macro step by step in a writer blank document to see the problem : sub badAlignment param=ThisComponent.createInstance("com.sun.star.document.Settings") param.MathBaselineAlignment=true obj=ThisComponent.CreateInstance("com.sun.star.text.TextEmbeddedObject") obj.CLSID="078B7ABA-54FC-457F-8551-6147e776a997" obj.AnchorType=com.sun.star.text.TextContentAnchorType.AS_CHARACTER oViewCursor = ThisComponent.getCurrentController().getViewCursor() oTextCursor=oViewCursor.Text.createTextCursorByRange(oViewCursor) oTextCursor.Text.insertString(oTextCursor,"this formula ...",false) oTextCursor.Text.insertTextContent(oTextCursor, obj, true) obj.Model.leftMargin=0 obj.Model.rightMargin=0 obj.Model.bottomMargin=0 obj.Model.topMargin=0 obj.Model.formula="x ^ {1 over 2}" obj.ExtendedControlOverEmbeddedObject.update() oTextCursor.Text.insertString(oTextCursor," is well aligned, ",false) obj.Model.bottomMargin=100 oTextCursor.Text.insertString(oTextCursor," still aligned, ",false) obj.Model.topMargin=100 oTextCursor.Text.insertString(oTextCursor," not aligned anymore ! ",false) end sub -- You are receiving this mail because: You are on the CC list for the bug.
