[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - svx/source
Andras Timar
andras.timar at collabora.com
Wed Jan 28 06:48:38 PST 2015
svx/source/sidebar/possize/PosSizePropertyPanel.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 7d6445bdca407b53bfdb4277d1add2010cd7e9f0
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
(cherry picked from commit 9a7bf47098fe69b5c6069372708918ef94a9d597)
Reviewed-on: https://gerrit.libreoffice.org/14222
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
index b2c3754..d2cc20a 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
@@ -502,6 +502,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