http://openoffice.org/bugzilla/show_bug.cgi?id=118050
Issue Type: DEFECT
Summary: Bad refresh and bad height of formula with some
operators
Classification: Application
Product: Formula editor
Version: OOo 3.4 Beta
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: ui
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Symbols widetilde and widehat don't update the height of formula properly. So
the symbols are truncated (on ubuntu 9.10)
This problem doesn't occur on WindowsXP/OOo3.4 beta1
To see the problem, run this macro step by step and read the comments.
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}" 'good alignment but has not the good
height (hat is truncated).
obj.Model.topMargin=100 'Now good height but bad alignment because of
bug 118043.
obj.Model.formula="widehat{ABC}" 'no refresh of formula
obj.Model.setmodified(TRUE) 'no refresh despite setmodified(True)
obj.Model.topMargin=0 ' now good refresh of formula but not the good
height, tilde is truncated. Good alignment.
obj.Model.formula="widevec{AB}" 'good refresh of formula without changing
the top or bottom margins. Good height. Good alignment.
end sub
--
Configure bugmail: http://openoffice.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification
from Bugzilla. Please log into the website and enter your comments.
---------------------------------------------------------------------
--
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help
--
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help