[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - svx/source

Caolán McNamara caolanm at redhat.com
Fri Jun 16 08:59:01 UTC 2017


 svx/source/tbxctrls/grafctrl.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3776f6e5c9418e82a882134e0177d07cb79d25e5
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/38868
    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 7392ab25a906..71ef9f35b48f 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