diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2016-10-08 14:51:32 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2016-12-20 14:19:17 +0100 |
commit | f3fdd6ead743d5ce883bb4dab4857f40f1092a75 (patch) | |
tree | 3b19e91ff073dfd2b358acfe2bac993b670d19b5 /svx/source/tbxctrls/itemwin.cxx | |
parent | d72f2a5e911cd4162695370fb598036b0a5351d1 (diff) |
Fix metric spinbox tool item size
Instead of guessing, use the CalcMinimumSize(), which also knows
about theming.
Change-Id: I747571b48c81166d11d03f99ab564b1a25165ef3
Diffstat (limited to 'svx/source/tbxctrls/itemwin.cxx')
-rw-r--r-- | svx/source/tbxctrls/itemwin.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/svx/source/tbxctrls/itemwin.cxx b/svx/source/tbxctrls/itemwin.cxx index de7c5bbae3a3..72c416944af2 100644 --- a/svx/source/tbxctrls/itemwin.cxx +++ b/svx/source/tbxctrls/itemwin.cxx @@ -248,9 +248,7 @@ SvxMetricField::SvxMetricField( , ePoolUnit(MapUnit::MapCM) , mxFrame(rFrame) { - Size aSize(GetTextWidth( "99,99mm" ),GetTextHeight()); - aSize.Width() += 20; - aSize.Height() += 6; + Size aSize( CalcMinimumSize() ); SetSizePixel( aSize ); aLogicalSize = PixelToLogic(aSize, MapUnit::MapAppFont); SetUnit( FUNIT_MM ); |