summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-10-27 18:16:53 +0200
committerEike Rathke <erack@redhat.com>2017-10-27 18:29:45 +0200
commit7cf453c78ce67f17661bfc74d1df6073cfc9d2ad (patch)
tree49d55befc3cc84a2d85e9fb8e0a5b06274374ff2
parent2c2d57585407acda2ea57c07dab98b5a23b37940 (diff)
Use LocaleDataWrapper::stringToDouble() in StrToDouble, tdf#81671
Change-Id: I7c791d8d133b830b146a4a9c6869bf27609167b6
-rw-r--r--sw/source/core/doc/docsort.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/core/doc/docsort.cxx b/sw/source/core/doc/docsort.cxx
index c0111810e7c2..26cdcc41a19f 100644
--- a/sw/source/core/doc/docsort.cxx
+++ b/sw/source/core/doc/docsort.cxx
@@ -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;