diff options
author | Eike Rathke <erack@redhat.com> | 2018-07-10 18:39:32 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-07-10 18:40:13 +0200 |
commit | 8ca6468f0f4900d4d3bb45e0e938fe35c308512c (patch) | |
tree | 1fff546c6b05469af901e268ac879e84c5b98748 /svl | |
parent | edc62adae9a354ca1305e83b10c98a545f58d341 (diff) |
Revert "tdf#118324 Extend ODF for blank in integer"
This reverts commit c290f692dd28094d41dff686f3faa1c4e14b556e.
Reverting because
a) makes builds fail with errors from the schema validator in saving unit tests
b) the loext:max-blank-integer-digits is now saved for some number formats where it is not necessary
For example, load sc/qa/unit/data/ods/tdf102370_ExponentWithoutSign.ods
save as .xlsx
reload the .xlsx
save as .ods
(which effectively is what the ScExportTest::testExponentWithoutSignFormatXLSX() unit test does and makes the schema validator stumble)
Change-Id: Iaac7e42b23317e7977876c9b5d545c76a1e2a4d2
Reviewed-on: https://gerrit.libreoffice.org/57240
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zformat.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 9b4ef9da027e..53e7a02e9acf 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -4755,10 +4755,9 @@ void SvNumberformat::GetNumForInfo( sal_uInt16 nNumFor, SvNumFormatType& rScanne { p++; } - while ( *p == '0' || *p == '?' ) + while ( *p++ == '0' ) { nLeadingCnt++; - p++; } } else if (nType == NF_SYMBOLTYPE_DECSEP |