https://bugs.freedesktop.org/show_bug.cgi?id=67421
Priority: medium
Bug ID: 67421
Assignee: [email protected]
Summary: API: some of embedded objects' models in a document
are not accessible
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Status: UNCONFIRMED
Version: 3.3.0 release
Component: Libreoffice
Product: LibreOffice
Created attachment 83109
--> https://bugs.freedesktop.org/attachment.cgi?id=83109&action=edit
Testcase
In the attached document, there are a lot of formula objects embedded (all have
a stub formula text: "A Formula"). When trying to manipulate them using Basic,
some of their models return empty or null.
To reproduce, execute the following macro on the document:
sub tst()
embeddedObjects = ThisComponent.getEmbeddedObjects()
k = 0
for each oMathObject in embeddedObjects
oModel = oMathObject.Model
if ((not isNull(oModel)) and (not isEmpty(oModel))) then
oModel.Formula=Format(k)
oMathObject.ExtendedControlOverEmbeddedObject.Update()
end if
k=k+1
next
end sub
This macro should simply replace the formulas in the objects with a number.
However, some objects still contain text "A Formula" after the operation. They
seem to be at specific positions (in this case, they are objects in lines 21,
42, 63, ...)
Tested with 3.3.0.4, 4.1.0.4, AOO 4.0 under Win7x64. Seems like an inherited
bug.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs