From 442eb1ab9d8c1ad970993ef6c8a49e89601b7432 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 7 Sep 2015 21:11:28 +0200 Subject: related tdf#93676, we want to export all significant digits The code comment mentions correctly that we want to show all significant digits but a value of -1 means that the last digit before the decimal point is rounded away. Change-Id: Id91a6076e37629502281c5dda426018f93d1e465 --- chart2/source/inc/CommonFunctors.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chart2') diff --git a/chart2/source/inc/CommonFunctors.hxx b/chart2/source/inc/CommonFunctors.hxx index 226eeed442d8..fac5cd9d6a4c 100644 --- a/chart2/source/inc/CommonFunctors.hxx +++ b/chart2/source/inc/CommonFunctors.hxx @@ -84,8 +84,9 @@ struct OOO_DLLPUBLIC_CHARTTOOLS AnyToString : public ::std::unary_function< ::co return ::rtl::math::doubleToUString( * pDouble, rtl_math_StringFormat_Automatic, - -1, // use maximum decimal places available - sal_Char( '.' ) // decimal separator + rtl_math_DecimalPlaces_Max, // use maximum decimal places available + sal_Char( '.' ), // decimal separator + true // remove trailing zeros ); } else if( eClass == ::com::sun::star::uno::TypeClass_STRING ) -- cgit