[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - svl/source

Laurent Balland-Poirier laurent.balland-poirier at laposte.net
Mon Aug 17 03:07:30 PDT 2015


 svl/source/numbers/zformat.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0016a42db657ccd6597e2d559e269d6232654afb
Author: Laurent Balland-Poirier <laurent.balland-poirier at laposte.net>
Date:   Sat Aug 15 14:24:35 2015 +0200

    tdf#93071 Remove trailing zeroes of scientific in General format
    
    (cherry picked from commit a6fbbfd2f42f5361d53bd4b330a507d94d636923)
    Change-Id: I408bab7edf58020fc1ec541dc940c84d387bb56c
    Reviewed-on: https://gerrit.libreoffice.org/17770
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 7efc8e8..4b5c08b 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -1969,7 +1969,7 @@ void lcl_GetOutputStringScientific(double fNumber, sal_uInt16 nCharCount,
     nPrec = ::std::min(nPrec, static_cast<sal_uInt16>(14)); // limit to 14 decimals.
 
     rOutString = ::rtl::math::doubleToUString(fNumber, rtl_math_StringFormat_E,
-                                              nPrec, rFormatter.GetNumDecimalSep()[0]);
+                                              nPrec, rFormatter.GetNumDecimalSep()[0], true);
 }
 
 sal_Int32 lcl_GetForcedDenominator(const ImpSvNumberformatInfo &rInfo, sal_uInt16 nAnz)


More information about the Libreoffice-commits mailing list