diff options
-rw-r--r-- | extensions/source/propctrlr/browserline.cxx | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/extensions/source/propctrlr/browserline.cxx b/extensions/source/propctrlr/browserline.cxx index 03756b2654e1..d88fdadc632d 100644 --- a/extensions/source/propctrlr/browserline.cxx +++ b/extensions/source/propctrlr/browserline.cxx @@ -274,18 +274,19 @@ namespace pcr { if( m_pTheParent ) { - String aText = m_aFtTitle.GetText(); - while( m_pTheParent->GetTextWidth( aText ) < m_nNameWidth ) - aText.AppendAscii("..........."); - - // for Issue 69452 - if (Application::GetSettings().GetLayoutRTL()) - { - sal_Unicode cRTL_mark = 0x200F; - aText.Append(cRTL_mark); - } - - m_aFtTitle.SetText(aText); + OUStringBuffer aText( m_aFtTitle.GetText() ); + + while( m_pTheParent->GetTextWidth( aText.toString() ) < m_nNameWidth ) + aText.append("..........."); + + // for Issue 69452 + if (Application::GetSettings().GetLayoutRTL()) + { + sal_Unicode cRTL_mark = 0x200F; + aText.append( OUString(cRTL_mark) ); + } + + m_aFtTitle.SetText( aText.makeStringAndClear() ); } } |