Kaydet (Commit) 7cf453c7 authored tarafından Eike Rathke's avatar Eike Rathke

Use LocaleDataWrapper::stringToDouble() in StrToDouble, tdf#81671

Change-Id: I7c791d8d133b830b146a4a9c6869bf27609167b6
üst 2c2d5758
......@@ -112,10 +112,7 @@ double SwSortElement::StrToDouble( const OUString& rStr )
rtl_math_ConversionStatus eStatus;
sal_Int32 nEnd;
double nRet = ::rtl::math::stringToDouble( rStr,
pLclData->getNumDecimalSep()[0],
pLclData->getNumThousandSep()[0],
&eStatus, &nEnd );
double nRet = pLclData->stringToDouble( rStr, true, &eStatus, &nEnd );
if( rtl_math_ConversionStatus_Ok != eStatus || nEnd == 0 )
nRet = 0.0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment