Apache OpenOffice (AOO) Bugzilla – Issue 54397
Changing numbers in tables drops number format
Last modified: 2013-08-07 14:43:03 UTC
1. create a table in writer 2. enter some numbers 3. format the cells with number format "Number" 4. Change a number in a cell to another number => The number format switches back to Text (which is visible by changing the alignment from right to left) ->TL: If you are not the responsible developer for this, please forward accordingly.
.
The code were this effect happens is # if( !bSetNumFmt && !bIsEmptyTxtNd && pNumFmtItem ) # { # // JP 15.01.99: Nur Attribute zuruecksetzen reicht nicht. # // Sorge dafuer, das der Text auch #entsprechend # // formatiert wird! # pBoxFmt->SetAttr( *GetDfltAttr( RES_BOXATR_FORMAT )); # } in ndtbl.cxx. It is currently not yet clear why this code was added... TL->OS: please have a look. Thanks!
MRU->OS: looks like TL wanted to assign this to you...
*** Issue 57434 has been marked as a duplicate of this issue. ***
Target adjusted
*** Issue 58897 has been marked as a duplicate of this issue. ***
*** Issue 75150 has been marked as a duplicate of this issue. ***
This bug has a billion duplicates (just search for "table number format"). The oldest report is from June 2003! Isn't it time that someone fix this?
Some of the duplicates: * Issue 15769 * Issue 25874 * Issue 41125 * Issue 46076 * Issue 48913 * Issue 63127
Another candidate for dupl.: issue 73823 With some useful comments (FME)
target 3.0
*** Issue 87908 has been marked as a duplicate of this issue. ***
The problem is the number recognition setting. According to the spec at http://specs.openoffice.org/writer/compatibility/tabstop_compatibility.sxw the default has been set to off. The spec states: "The automatic Number Recognition in Writer tables (and the automatic alignment of numbers caused by it) interferes with the handling of decimal tab stops in Writer tables. Therefore the default for Number Recognition will be changed to 'disabled'." ->fme: I don't understand (anymore) why the recognition has been disabled instead of disabling the automatic alignment only?
*** Issue 73823 has been marked as a duplicate of this issue. ***
A discussion with fme brought no reason not to switch on number recognition and switch off alignment by default. Fixed in cws os113 in officecfg/registry/schema/org/openoffice/Office/Writer.xcs and WriterWeb.xcs
Hi *, Good solution, IMO. Thanks.
Reassigned for verification
Verified in CWS os113. The default is correctly hanged now. However, the bug, that the number format is changed when the number in a cell is changed while "number recognition" is still active, remains - I added a comment to issue 73823.
Closed.
Why is this marked as fixed? I can reproduce in OOo 3.1.1. See bug #106923.