diff options
author | John LeMoyne Castle <jlc@mail2lee.com> | 2010-11-03 22:08:26 -0600 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2010-11-04 10:28:37 +0000 |
commit | cec37835ae6e67bfd571f09cc1ab579a9195e798 (patch) | |
tree | 6389091fdbf7b3d0cc61e894470fe52ea26954ab /basic | |
parent | d41f8a6be65b249884a343e8f21327c9cc3b21e4 (diff) |
OO Basic Million-to-One bug (#i76852#) fixed
Adds '=' to edge test in sbxscan.cxx ImpCvtNum so exponent prints and 1 million is 1e+6 instead of just 1 for singles.
Same one char change does similar fix for OO Basic doubles and 1e+14.
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/sbx/sbxscan.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx index 9f4c9a6bd495..5fe1704bcc38 100644 --- a/basic/source/sbx/sbxscan.cxx +++ b/basic/source/sbx/sbxscan.cxx @@ -405,7 +405,7 @@ void ImpCvtNum( double nNum, short nPrec, ::rtl::OUString& rRes, BOOL bCoreStrin *p++ = '-'; } double dMaxNumWithoutExp = (nPrec == 6) ? 1E6 : 1E14; - myftoa( nNum, p, nPrec,( nNum &&( nNum < 1E-1 || nNum > dMaxNumWithoutExp ) ) ? 4:0, + myftoa( nNum, p, nPrec,( nNum &&( nNum < 1E-1 || nNum >= dMaxNumWithoutExp ) ) ? 4:0, FALSE, TRUE, cDecimalSep ); // Trailing Zeroes weg: for( p = cBuf; *p &&( *p != 'E' ); p++ ) {} |