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

Caolán McNamara caolanm at redhat.com
Tue Jun 27 08:49:22 UTC 2017


 svx/source/tbxctrls/grafctrl.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 459914cd491598c32cad203fed6c7b90491f6a52
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Jun 16 09:42:47 2017 +0100

    Resolves: tdf#108419 use spinfield preferred size as transparency widget size
    
    Change-Id: I7b5c8aeb087efe007c687dc1f206bcb0e8b0173e
    Reviewed-on: https://gerrit.libreoffice.org/38866
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/svx/source/tbxctrls/grafctrl.cxx b/svx/source/tbxctrls/grafctrl.cxx
index 114f23f0fe03..6c231f47cfc1 100644
--- a/svx/source/tbxctrls/grafctrl.cxx
+++ b/svx/source/tbxctrls/grafctrl.cxx
@@ -91,11 +91,8 @@ ImplGrafMetricField::ImplGrafMetricField( vcl::Window* pParent, const OUString&
     maCommand( rCmd ),
     mxFrame( rFrame )
 {
-    Size aSize( GetTextWidth( "-100 %" ), GetTextHeight() );
-
-    aSize.Width() += 20;
-    aSize.Height() += 6;
-    SetSizePixel( aSize );
+    Size aSize(CalcMinimumSizeForText("-100 %"));
+    SetSizePixel(aSize);
 
     if ( maCommand == ".uno:GrafGamma" )
     {


More information about the Libreoffice-commits mailing list