https://bugs.freedesktop.org/show_bug.cgi?id=37386

Christophe Devalland <christophe.devall...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|Other                       |x86-64 (AMD64)
            Version|LibO 3.5.0 Release          |LibO 3.5.3 release

--- Comment #4 from Christophe Devalland <christophe.devall...@gmail.com> 
2012-05-17 13:44:49 PDT ---
the bug is still there (LibO 3.5.3)
Run this macro step by step in a blank writer document to see the problem 

sub badHeight
    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,"a 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="widetilde{ABC}" 'bad refresh of formula
    obj.ExtendedControlOverEmbeddedObject.update()  'good refresh, good
alignment but has not the good height (tilde is truncated).
    obj.Model.formula="widehat{ABC}"
    obj.ExtendedControlOverEmbeddedObject.update() ' not the good height, hat
is truncated. Good alignment.
    obj.Model.formula="widevec{AB}" 'good refresh of formula. Good height. Good
alignment.
end sub

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to