Kaydet (Commit) 9ccdd3f9 authored tarafından Eike Rathke's avatar Eike Rathke

Use LocaleDataWrapper::stringToDouble() in ScDoubleField::GetValue, tdf#81671

Change-Id: I7ce956a6a08b9b5befd100e2b0030fc2d4787749
üst 7616e1c1
......@@ -34,11 +34,6 @@ sal_Unicode lclGetDecSep()
return ScGlobal::GetpLocaleData()->getNumDecimalSep()[0];
}
sal_Unicode lclGetGroupSep()
{
return ScGlobal::GetpLocaleData()->getNumThousandSep()[0];
}
} // namespace
ScDoubleField::ScDoubleField( vcl::Window* pParent, WinBits nStyle ) :
......@@ -60,7 +55,7 @@ bool ScDoubleField::GetValue( double& rfValue ) const
{
rtl_math_ConversionStatus eStatus;
sal_Int32 nEnd;
rfValue = rtl::math::stringToDouble( aStr, lclGetDecSep(), lclGetGroupSep(), &eStatus, &nEnd );
rfValue = ScGlobal::GetpLocaleData()->stringToDouble( aStr, true, &eStatus, &nEnd );
bOk = (eStatus == rtl_math_ConversionStatus_Ok) && (nEnd == aStr.getLength() );
}
return bOk;
......
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