https://bugs.documentfoundation.org/show_bug.cgi?id=97601
Bug ID: 97601
Summary: Accessing chart data through API results in infinite
redraw loop
Product: LibreOffice
Version: 5.0.4.2 release
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Chart
Assignee: [email protected]
Reporter: [email protected]
Created attachment 122412
--> https://bugs.documentfoundation.org/attachment.cgi?id=122412&action=edit
Writer file with chart and macro
On Windows 7 LO 5.0.4, after changing the data in a chart through the API, an
infinite chart redraw loop results.
To reproduce:
Open the attached document and run the macro.
The line
oChart.ExtendedControlOverEmbeddedObject.changeState(1)
triggers the redraw loop. But without this line the diagram will not show the
changed data.
The bug is NOT present on Ubuntu 14.04 LO 4.2 and Apache OO 4.1.2.
The bug is also present when executing the following code from a C++ extension
after changing the chart data:
Reference < XEmbeddedObjectSupplier > xEOS(xChart, UNO_QUERY_THROW);
Reference < ::com::sun::star::chart::XChartDocument >
cDoc(xEOS->getEmbeddedObject(), UNO_QUERY_THROW);
Reference< XPropertySet > dProperties(cDoc->getDiagram(), UNO_QUERY_THROW);
Any type = dProperties->getPropertyValue(OU("SplineType"));
dProperties->setPropertyValue(OU("SplineType"), makeAny(sal_uInt32(0)));
dProperties->setPropertyValue(OU("SplineType"), makeAny(sal_uInt32(1)));
dProperties->setPropertyValue(OU("SplineType"), type);
Here changing the SplineType triggers the redraw loop.
Note: This bug was found as a result of trying to get the chart to update when
the data was changed. The line of code given above seems to be the only way to
achieve this.
--
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