diff options
-rw-r--r-- | sc/source/ui/sidebar/AlignmentPropertyPanel.cxx | 3 |
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; |