use approximate_char_width instead of GetTextWidth('X')

Change-Id: I4c25b07c1c5d80b70b801fd61b711a00d5194c04
This commit is contained in:
Caolán McNamara
2013-03-09 23:31:46 +00:00
parent 6f780d3533
commit ab8f432b33

View File

@@ -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();