[Libreoffice-commits] core.git: svx/source

Andras Timar andras.timar at collabora.com
Wed Jan 28 02:08:42 PST 2015


 svx/source/sidebar/possize/PosSizePropertyPanel.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 9a7bf47098fe69b5c6069372708918ef94a9d597
Author: Andras Timar <andras.timar at collabora.com>
Date:   Wed Jan 28 11:07:00 2015 +0100

    tdf#88740 fix sidebar angle rotation i18n
    
    Change-Id: I30355f3aaf77b1952e21050e3593e575571d7aaa

diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
index f7f10f8..63de7bb 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
@@ -488,6 +488,12 @@ IMPL_LINK( PosSizePropertyPanel, AngleModifiedHdl, void *, EMPTYARG )
 
     if( (nChar < '0') || (nChar > '9') )
         return 0;
+
+    const LocaleDataWrapper& rLocaleWrapper( Application::GetSettings().GetLocaleDataWrapper() );
+    const sal_Unicode cSep = rLocaleWrapper.getNumDecimalSep()[0];
+
+    sTmp = sTmp.replace(cSep,'.'); // toDouble() expects decimal point
+
     double dTmp = sTmp.toDouble();
     if(bNegative)
     {


More information about the Libreoffice-commits mailing list