summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 fac5cd9d6a4c..d998069b93ae 100644
--- a/chart2/source/inc/CommonFunctors.hxx
+++ b/chart2/source/inc/CommonFunctors.hxx
@@ -127,8 +127,9 @@ struct OOO_DLLPUBLIC_CHARTTOOLS DoubleToOUString : public ::std::unary_function<
return ::rtl::math::doubleToUString(
fNumber,
rtl_math_StringFormat_Automatic,
- -1, // use maximum number of decimal places
- static_cast< sal_Char >( '.' )
+ rtl_math_DecimalPlaces_Max, // use maximum decimal places available
+ static_cast< sal_Char >( '.' ),
+ true
);
}
};