summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2015-01-28 11:07:00 +0100
committerAndras Timar <andras.timar@collabora.com>2015-02-06 13:13:36 +0100
commit59e5d24908ab227f3cdc75dba1ec75266f3f0230 (patch)
tree9caef964beecbea826e7809f61eceaa122472a45 /svx
parenta63f1ff53c63de2078d22447f93ae2b99778d8a9 (diff)
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@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/possize/PosSizePropertyPanel.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
index b2c3754c48af..d2cc20a42f4c 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)
{