Summary: | Bad refresh and bad height of formula with some operators | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Christophe Devalland <christophe.devalland> |
Component: | Formula Editor | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | major | ||
Priority: | high | CC: | christophe.devalland, ddorange, jbfaure, LpSolit, mseifert |
Version: | 4.0.0.3 release | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Christophe Devalland
2011-05-19 14:01:20 UTC
(In reply to comment #0) in the macro, the bug number is not 118043 (it's OOo number) but 37327 (LibO number) sorry [This is an automated message.] This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it started right out as NEW without ever being explicitly confirmed. The bug is changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases. Details on how to test the 3.5.0 beta1 can be found at: http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1 more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html I have the exact same problem with 3.5.0 final. The hats are cut at mid-height. 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 I can confirm this issue. I am using LibreOffice 3.5.2.2 Build-ID: 350m1(Build:202) under Gentoo Linux 3.4.0 x86_64. Creating the formula hat %delta has an inappropriate height. Adjusting the height manually in the formula editor is a workaround. *** Bug 60545 has been marked as a duplicate of this bug. *** I confirm this bug with LibreOffice 4.0 for all : widetilde, widehat and widevec. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.