Apache OpenOffice (AOO) Bugzilla – Issue 80221
Axis properties may get lost on save if axis is hidden
Last modified: 2013-02-24 21:19:28 UTC
1. Create a chart in a spreadsheet 2. Set scaling in Format/Axis/Y Axis, min max to fixed values, maybe logarithmic on 3. Insert/Axis, deselect y-axis 4. Save/Reload => The axis properties are correctly saved and reloaded, as for the grid (which is on per default), the axis element was written to the file with all its properties (plus a show="false" attribute) 3a. Insert/Grid, deselect y main-grid 4a. Save/Reload => The axis properties are not saved, as no axis element is exported at all. The axis should always be exported especially when there are scaling properties set.
Note: this is no regression from the new chart, it also appeared in the old chart. However, it seems to have worked in OOo 1.0.3 (sxc, OOo XML format)
Currently an axis element is exported, when a. the axis is visible b. an axis title exists c. a grid for an axis exists If neither of a, b and c fits, no element is written. To fix, an axis (at least a y-axis, as this is normally used for scaling) could always be exported.
Now, an axis element is also written if the XPropertySet of an axis exists (which comes from an XAxis...Supplier). See xmloff/source/chart/SchXMLExport.cxx in CWS chart11.
->kla: Please veryify in CWS chart11.
seen ok in cws chart11 -> verified
Seen ok in current master -> closed