summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-10-27 18:12:17 +0200
committerEike Rathke <erack@redhat.com>2017-10-27 18:29:45 +0200
commitb962def146376dcb48dd93f045fd703489c283e3 (patch)
tree972621b096cce1e55bc13f28b53341a45751055b
parent6c0e05ece7bd6e2ecae63fdb4cd73b1f9eaf7ed4 (diff)
Use LocaleDataWrapper::stringToDouble() in AlignmentPropertyPanel, tdf#81671
Change-Id: I49619f763f3046e94b0bd5d5226e628409310871
-rw-r--r--sc/source/ui/sidebar/AlignmentPropertyPanel.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
index a00e4bcb06eb..cdb79078bb79 100644
--- a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
@@ -164,7 +164,6 @@ IMPL_LINK_NOARG( AlignmentPropertyPanel, 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
@@ -172,7 +171,7 @@ IMPL_LINK_NOARG( AlignmentPropertyPanel, 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;