summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-10-27 18:11:25 +0200
committerEike Rathke <erack@redhat.com>2017-10-27 18:29:45 +0200
commit6c0e05ece7bd6e2ecae63fdb4cd73b1f9eaf7ed4 (patch)
tree3d6eacace1bb008606bd8b381485d698b98d6e8e
parent9ccdd3f9e1878f31ccd71b099fe926c20e1a92aa (diff)
Use LocaleDataWrapper::stringToDouble() in ScSolverValueDialog, tdf#81671
Change-Id: I6b29ab335c0d2e66804421cb90a6684b747c5035
-rw-r--r--sc/source/ui/miscdlgs/solveroptions.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sc/source/ui/miscdlgs/solveroptions.cxx b/sc/source/ui/miscdlgs/solveroptions.cxx
index 03bda551f857..59f00ed46851 100644
--- a/sc/source/ui/miscdlgs/solveroptions.cxx
+++ b/sc/source/ui/miscdlgs/solveroptions.cxx
@@ -467,12 +467,10 @@ double ScSolverValueDialog::GetValue() const
{
OUString aInput = m_pEdValue->GetText();
- const LocaleDataWrapper* pLocaleData = ScGlobal::GetpLocaleData();
rtl_math_ConversionStatus eStatus = rtl_math_ConversionStatus_Ok;
- double fValue = rtl::math::stringToDouble( aInput,
- pLocaleData->getNumDecimalSep()[0],
- pLocaleData->getNumThousandSep()[0],
- &eStatus );
+ sal_Int32 nParseEnd = 0;
+ double fValue = ScGlobal::GetpLocaleData()->stringToDouble( aInput, true, &eStatus, &nParseEnd);
+ /* TODO: shouldn't there be some error checking? */
return fValue;
}