summaryrefslogtreecommitdiff
path: root/svtools/source/contnr/svtreebx.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/contnr/svtreebx.cxx')
-rw-r--r--svtools/source/contnr/svtreebx.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/contnr/svtreebx.cxx b/svtools/source/contnr/svtreebx.cxx
index fe513db90113..7e6475e4571f 100644
--- a/svtools/source/contnr/svtreebx.cxx
+++ b/svtools/source/contnr/svtreebx.cxx
@@ -872,7 +872,7 @@ short SvTreeListBox::GetHeightOffset(const Font& /* rFont */, Size& aSizeLogic )
{
DBG_CHKTHIS(SvTreeListBox,0);
short nOffset = 0;
- aSizeLogic = Size(GetTextWidth('X'), GetTextHeight());
+ aSizeLogic = Size(GetTextWidth(rtl::OUString('X')), GetTextHeight());
if( GetEntryHeight() > aSizeLogic.Height() )
nOffset = ( GetEntryHeight() - (short)aSizeLogic.Height()) / 2;
return nOffset;