summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/grafctrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/tbxctrls/grafctrl.cxx')
-rw-r--r--svx/source/tbxctrls/grafctrl.cxx7
1 files changed, 2 insertions, 5 deletions
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" )
{