summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-10-27 18:10:24 +0200
committerEike Rathke <erack@redhat.com>2017-10-27 18:29:45 +0200
commit9ccdd3f9e1878f31ccd71b099fe926c20e1a92aa (patch)
tree86904357554f28456dc1734475f64f6f6bf6136b /sc/source
parent7616e1c18869cda8a924e26337e3f1c83cbb7efe (diff)
Use LocaleDataWrapper::stringToDouble() in ScDoubleField::GetValue, tdf#81671
Change-Id: I7ce956a6a08b9b5befd100e2b0030fc2d4787749
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/cctrl/editfield.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/sc/source/ui/cctrl/editfield.cxx b/sc/source/ui/cctrl/editfield.cxx
index a516e45c8356..25d3c43888da 100644
--- a/sc/source/ui/cctrl/editfield.cxx
+++ b/sc/source/ui/cctrl/editfield.cxx
@@ -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;