Apache OpenOffice (AOO) Bugzilla – Issue 103984
XChartDataArray / setDataArray broken
Last modified: 2013-02-24 21:19:35 UTC
In charts generated by code, the setDataArray function kills OO: Sub GetAndSetChartData Dim aRect as new com.sun.star.awt.Rectangle Dim oX oCharts = ThisComponent.Sheets.getByIndex(0).Charts oCharts.addNewByName("chart11", aRect, Array(), False, True) oChartDoc = oCharts.getByName( "chart11" ).EmbeddedObject oX = oChartDoc.Data.getData() oChartDoc.Data.setData(oX) '<- this line kills OO End Sub The same behavior occurs if I create oX by code as a sequence of sequences with exactly the same structure as getData returns. Prio P2 because it looks like regression: According to http://www.oooforum.org/forum/viewtopic.phtml?t=86884 , this has worked in OO 2.2
Created attachment 63943 [details] example showing the problem
@weiz, please have a look at this one. Thanks!
Created attachment 64468 [details] patch_20090901
@iha, the patch is submitted, please let me know your suggestions. Thank you!
@weiz, the patch looks quite good already. thanks! :-) Regarding the sc change - the number format supplier should be attached in all cases. Regarding the chart2 change - the column label vector should be resized instead of skipping labels if the size is not sufficient. But the assertion is right there. It should not happen that the size is not sufficient. The root cause for this error was in method InternalData::enlargeData. I made that additional changes and commited all to CWS chart41. Thanks for the patch! - Ingrid
@Thomas, please verify in CWS chart41. Load the attached example while macros are enabled and press the button within the document. a chart should be created and there be no crash anymore.
Seen ok in cws chart41 -> verified
When is this issue scheduled to be integrated into the master code line? DEV300m?. Is this information on this web site where I can find it?
@ rebext: pls see http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300/chart41
@ cornouws: Thanks
Seen ok in current master -> closed