Apache OpenOffice (AOO) Bugzilla – Issue 90218
Saving spreadsheet loses formatting
Last modified: 2017-05-20 11:28:09 UTC
When saving spreadsheet number formatting is lost in displayed spread sheet. Description: 1. Open attached spread sheet 2. Goto sheet "Gold" 3. Enter "xyz" into cell C112 4. Press "Save" 5. Decimal places in colums N and P are changing after save is complete.
Created attachment 54133 [details] Spread sheet to demonstrate formatting changes
Same error occurs with oocalc-2.3 under Windows. After deleting "Chart" sheet from sample spread sheet, this error no longer shines up.
confirmed
The culprit is the last chart "Scheidekosten Silber über Feingehalt.ist" that seems to mess around with the number formatter. It's already sufficient to activate the chart once with a double click and then go back to sheet "Gold" and see the decimals changed. Effectively the user-defined number format 0.000 that was assigned is gone from the list of available number formats then, so the General format is applied. Same happens when forcing a hard recalc using Shift-Ctrl-F9. Deleting the chart immediately after having loaded the document makes the document behave well. @iha: Ingrid, one for you, I guess ;-)
Adapting component.
The number format of the columns N and P gets lost because in xmloff a volatile number format is removed from the number formatter that better not have been removed. The numberformat N128P0 in object 13 is volatile: <number:number-style style:name="N128P0" style:volatile="true"><number:number number:decimal-places="3" number:min-integer-digits="1"/> and therefor is deleted in method SvXMLNumImpData::RemoveVolatileFormats. But a same numberformat containing 3 decimal places and min-integer-digits=1 is already used in calc. As the chart and calc do share the numberformatter this used numberformat is deleted wrongly. @Niklas, do you have an idea for a fix here? As cvs annotate tells, you have introduced the methods some years ago. Thanks, Ingrid.
Reset assigne to the default "issues@openoffice.apache.org".