summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-10-27 18:12:56 +0200
committerEike Rathke <erack@redhat.com>2017-10-27 18:29:45 +0200
commitfb5fc8256e79a3185c92c782733a78a18eafabeb (patch)
treebe1e8cc3d1549b470a27a06ace0aa45162af379b
parentb962def146376dcb48dd93f045fd703489c283e3 (diff)
Use LocaleDataWrapper::stringToDouble() in PosSizePropertyPanel, tdf#81671
Change-Id: Ice64297dff19f653383b1936d7f47c692df0baf8
-rw-r--r--svx/source/sidebar/possize/PosSizePropertyPanel.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
index 3895b2a41208..64012a7af1cf 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
@@ -430,7 +430,6 @@ IMPL_LINK_NOARG( PosSizePropertyPanel, AngleModifiedHdl, Edit&, void )
return;
const LocaleDataWrapper& rLocaleWrapper( Application::GetSettings().GetLocaleDataWrapper() );
- const sal_Unicode cSep = rLocaleWrapper.getNumDecimalSep()[0];
// Do not check that the entire string was parsed up to its end, there may
// be a degree symbol following the number. Note that this also means that
@@ -438,7 +437,7 @@ IMPL_LINK_NOARG( PosSizePropertyPanel, AngleModifiedHdl, Edit&, void )
/* TODO: we could check for the degree symbol stop if there are no other
* cases with different symbol characters in any language? */
rtl_math_ConversionStatus eStatus;
- double fTmp = rtl::math::stringToDouble( sTmp, cSep, 0, &eStatus);
+ double fTmp = rLocaleWrapper.stringToDouble( sTmp, false, &eStatus, nullptr);
if (eStatus != rtl_math_ConversionStatus_Ok)
return;