Apache OpenOffice (AOO) Bugzilla – Issue 58457
Fileformat violation when saving Donut Charts
Last modified: 2013-02-24 21:20:35 UTC
Open a calc document and type some numbers in 2 columns and 4 rows for example. Create a donut chart from that data in columns (default). Save the document and look at the content.xml file of the chart subobject. For comparison create a bar chart from the same data with same options. The property 'chart:series-source' is set to 'columns' in both files as expected. The data writen to <table:table> subelement is almost identical. But the donut chart pretends to have for columns <table:table-column table:number-columns-repeated="4"/> which is not true (instead a number of 2 is fitting to the written table). Furthermore the number of series and Points is not fitting to the given datatable seperated in columns as indicated in chart:series-source. The settings for donut chart for rows or columns are mixed up in the gui which leads to the wrong settings in the file. Please export the correct setting 'chart:series-source="rows"' for donut charts if the GUI setting wrongly states 'from columns' and vice versa. Furthermore correct the wrong count for table columns repeat. The import than has to be adapted also to cope with both version.
Created attachment 31812 [details] The example Donut created from columns
Created attachment 31813 [details] The example Bar Chart created from columns
accepted
Fixed. ToDo: Adapt Build Id in SchXMLBuildInfo.hxx
Files created with OOo 2.0 or OOo 2.0.1 and saved with OOo 2.0.2 will get corrupted due to a missing working fileformat versioning. When a file is created with OOo 2.0 and loaded with a version containing these fixes and saved again, the files will get corrupted, because the OLE objects are just copied as they are (saved with OOo 2.0), but the parent document is re-saved with the new version. As OLE objects have no own meta information, they inherit it from their parent which in this case (the default) is wrong.
Depends on Issue 60323, because we need a reliable version info in OLE objects.
Changed Target to 2.x
Björn, I will take over.
Fixed in CWS chart2mst3. Donuts are now saved according to the ODF standard 1.1. One donut series is represented as one ring. Wrong files from older versions are converted correctly. Older versions of OpenOffice will not read the correct files correctly - so if you need to work with donut charts, please update to the corrected version. Todo: Update the build ID BUILDID_CHART2INTEGRATION in xmloff/source/chart/SchXMLErrorBuildIds.hxx to the Build ID of integration of the CWS chart2mst3.
removed dependency to separat import issue as import and export was handled here together
*** Issue 58461 has been marked as a duplicate of this issue. ***
@Thomas: Fixed in CWS chart2mst3 milestone10, please verify.
changed target to 2.3
@Jsi: pls verify this issue
found integrated on master src680 m215