Apache OpenOffice (AOO) Bugzilla – Issue 97563
Incorrect number format export in odf chart export & wrong assertion
Last modified: 2013-02-24 21:20:18 UTC
When built with --enable-dbgutil, the chart triggers the following two debug assertion messages * no existing Numberformat found with this key * not enough data points when creating a new pie chart in Calc with arbitrary data set, and clicking outside the chart object to bring focus back to Calc. Reading up the code a bit, it appears that, within SchXMLExportHelper::exportDataPoints(), the code tries to export a number format when in fact the object only has a color attribute, and tries to use the color value as the number format key which triggers the first assertion. The second assertion is triggered when the bExportContent boolean value is false, which leads to the data point list to remain empty. I believe the assertion should be checked only when the bExportContent bit is true. My patch will fix these two issues.
Created attachment 59000 [details] patch to remove assertions
Created attachment 59001 [details] patch to remove assertions
sorry about the duplicate. The web interface was malfunctioning and I got an empty page after the patch upload. :-( Anyway, could either bm or lha review this patch to see if this is safe? I believe this is a safe change, but I just want to make sure it really is. Thanks!
@bm, iha: can one of you have a quick look and see what you think? If this looks good, then I can take care of integrating it in one of my open CWSes.
->IHA: Please have a look
@kohei, the patch looks fine!
@iha: thanks Ingrid, for your review. :-)
fixed in koheiformula02 cws.
re-assigning to oc for qa.
verified in internal build cws_koheiformula02
This issue is closed automatically. It should be fixed in a version with is available for longer than half a year (OOo 3.1). If you think this issue isn't fixed in the current version (OOo 3.2) please reopen it. But then please pay attention about the field 'target milestone'. The closure was approved by the Release Status Meeting at 22nd of February 2010 and it is based on the issue handling guideline for fixed/verified issues : http://wiki.services.openoffice.org/wiki/Handle_fixed_verified_issues