summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-06-16 09:46:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-06-16 10:58:19 +0200
commit99cc2f32060f8e2f7f732b65122771c2a61638ca (patch)
tree39cc53fac1f1384758f5855734f4bb63ead58837 /svx
parent9e4502f0e393d2bc2810488b3ebb0a5c23038436 (diff)
only some languages put a space between number and %
Change-Id: I9dbbf403624a49513e4c596aef80754cd4e0a88d Reviewed-on: https://gerrit.libreoffice.org/38867 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/tbxctrls/grafctrl.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx
index 4c58847a33c1..7b45fdadd62c 100644
--- a/svx/source/tbxctrls/grafctrl.cxx
+++ b/svx/source/tbxctrls/grafctrl.cxx
@@ -19,6 +19,7 @@
#include <string>
+#include <i18nutil/unicode.hxx>
#include <vcl/toolbox.hxx>
#include <vcl/field.hxx>
#include <vcl/fixed.hxx>
@@ -92,7 +93,7 @@ ImplGrafMetricField::ImplGrafMetricField( vcl::Window* pParent, const OUString&
maCommand( rCmd ),
mxFrame( rFrame )
{
- Size aSize(CalcMinimumSizeForText("-100 %"));
+ Size aSize(CalcMinimumSizeForText(unicode::formatPercent(-100, Application::GetSettings().GetUILanguageTag())));
SetSizePixel(aSize);
if ( maCommand == ".uno:GrafGamma" )