[Libreoffice-commits] core.git: svx/source
Caolán McNamara
caolanm at redhat.com
Fri Jun 16 08:58:43 UTC 2017
svx/source/tbxctrls/grafctrl.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 99cc2f32060f8e2f7f732b65122771c2a61638ca
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jun 16 09:46:14 2017 +0100
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 at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
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" )
More information about the Libreoffice-commits
mailing list