summaryrefslogtreecommitdiff
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-01-28 11:07:50 +0100
commit9a7bf47098fe69b5c6069372708918ef94a9d597 (patch)
treef0ab0ae07af79344259c253e3c615127284610c7
parent20b02912eb12b33ad8353226540821285f64e0cd (diff)
tdf#88740 fix sidebar angle rotation i18n
Change-Id: I30355f3aaf77b1952e21050e3593e575571d7aaa
-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 f7f10f83a89e..63de7bb25118 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)
{