summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2015-08-01 22:20:51 +0200
committerEike Rathke <erack@redhat.com>2015-08-03 14:16:40 +0000
commita6fbbfd2f42f5361d53bd4b330a507d94d636923 (patch)
tree9fb9ab098e13c5345617a6062d5dccfbc51d0ce0 /svl
parentd60b265d0e364a8c0581eca10d61faa6f29c9ef5 (diff)
tdf#93071 Remove trailing zeroes of scientific in General format
Change-Id: I408bab7edf58020fc1ec541dc940c84d387bb56c Reviewed-on: https://gerrit.libreoffice.org/17466 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.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 03c2078b770e..e632c8f257a2 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -1986,7 +1986,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_E2,
- nPrec, rFormatter.GetNumDecimalSep()[0]);
+ nPrec, rFormatter.GetNumDecimalSep()[0], true );
}
sal_Int32 lcl_GetForcedDenominator(const ImpSvNumberformatInfo &rInfo, sal_uInt16 nAnz)