diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-03-09 23:31:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-03-11 07:53:11 +0000 |
commit | ab8f432b3382967f87967495b0b0e4c17f082da5 (patch) | |
tree | 85e3d6ed1990aecaa1a745bb922532bcf51077f7 /vcl | |
parent | 6f780d35330ac59cfd8fac5a48a3eeaa60e03a0a (diff) |
use approximate_char_width instead of GetTextWidth('X')
Change-Id: I4c25b07c1c5d80b70b801fd61b711a00d5194c04
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/combobox.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx index e561768df3aa..1c99ac21c843 100644 --- a/vcl/source/control/combobox.cxx +++ b/vcl/source/control/combobox.cxx @@ -1131,7 +1131,7 @@ Size ComboBox::CalcSize( sal_uInt16 nColumns, sal_uInt16 nLines ) const // width if ( nColumns ) - aSz.Width() = nColumns * GetTextWidth(rtl::OUString(static_cast<sal_Unicode>('X'))); + aSz.Width() = nColumns * approximate_char_width(); else aSz.Width() = aMinSz.Width(); |