Kaydet (Commit) 865b5caf authored tarafından David Ostrovsky's avatar David Ostrovsky

fix endless loop error

This partially reverts this commit:
b7df3446

Change-Id: Id05939da35541f9620d03d9d3998e618d0bb9092
üst 3dac2c4b
...@@ -274,19 +274,18 @@ namespace pcr ...@@ -274,19 +274,18 @@ namespace pcr
{ {
if( m_pTheParent ) if( m_pTheParent )
{ {
OUStringBuffer aText( m_aFtTitle.GetText() ); String aText = m_aFtTitle.GetText();
while( m_pTheParent->GetTextWidth( aText ) < m_nNameWidth )
while( m_pTheParent->GetTextWidth( aText.makeStringAndClear() ) < m_nNameWidth ) aText.AppendAscii("...........");
aText.append("...........");
// for Issue 69452
// for Issue 69452 if (Application::GetSettings().GetLayoutRTL())
if (Application::GetSettings().GetLayoutRTL()) {
{ sal_Unicode cRTL_mark = 0x200F;
sal_Unicode cRTL_mark = 0x200F; aText.Append(cRTL_mark);
aText.append( OUString(cRTL_mark) ); }
}
m_aFtTitle.SetText(aText);
m_aFtTitle.SetText( aText.makeStringAndClear() );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment