summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-07 21:11:28 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-07 21:15:50 +0200
commit442eb1ab9d8c1ad970993ef6c8a49e89601b7432 (patch)
tree10c426bbb10420760b2f2f299b2e8cdb0efcda7f /chart2/source
parenta052479f3c85bdedddfa38cb03b0858003c965c3 (diff)
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
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/inc/CommonFunctors.hxx5
1 files changed, 3 insertions, 2 deletions
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 )