summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-10-27 18:15:46 +0200
committerEike Rathke <erack@redhat.com>2017-10-27 18:29:45 +0200
commit2c2d57585407acda2ea57c07dab98b5a23b37940 (patch)
tree68ecd9a0191e82196c05425b664121d210654926
parent29dd087619ee089268fa16771f46f82a1feaa468 (diff)
Use LocaleDataWrapper::stringToDouble() in lcl_Str2Double, tdf#81671
Change-Id: Ife8f955e7f7a1c791c8bd0390981aae5fe9f82dc
-rw-r--r--sw/source/core/bastyp/calc.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/bastyp/calc.cxx b/sw/source/core/bastyp/calc.cxx
index d906f97ca7ca..2e43e93b7947 100644
--- a/sw/source/core/bastyp/calc.cxx
+++ b/sw/source/core/bastyp/calc.cxx
@@ -1324,10 +1324,9 @@ namespace
const sal_Unicode nCurrCmdPos = rCommandPos;
rtl_math_ConversionStatus eStatus;
const sal_Unicode* pEnd;
- rVal = rtl_math_uStringToDouble( rCommand.getStr() + rCommandPos,
+ rVal = pLclData->stringToDouble( rCommand.getStr() + rCommandPos,
rCommand.getStr() + rCommand.getLength(),
- pLclData->getNumDecimalSep()[0],
- pLclData->getNumThousandSep()[0],
+ true,
&eStatus,
&pEnd );
rCommandPos = static_cast<sal_Int32>(pEnd - rCommand.getStr());