From 2c2d57585407acda2ea57c07dab98b5a23b37940 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 27 Oct 2017 18:15:46 +0200 Subject: Use LocaleDataWrapper::stringToDouble() in lcl_Str2Double, tdf#81671 Change-Id: Ife8f955e7f7a1c791c8bd0390981aae5fe9f82dc --- sw/source/core/bastyp/calc.cxx | 5 ++--- 1 file 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(pEnd - rCommand.getStr()); -- cgit v1.2.3