[Libreoffice-commits] core.git: extensions/source

David Ostrovsky david at ostrovsky.org
Sun Jun 23 04:05:48 PDT 2013


 extensions/source/propctrlr/browserline.cxx |   25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

New commits:
commit 865b5caf6e2256e06f46a39a86d67f03408718a9
Author: David Ostrovsky <david at ostrovsky.org>
Date:   Sun Jun 23 12:44:06 2013 +0200

    fix endless loop error
    
    This partially reverts this commit:
    b7df3446c373a93dc5b77b495a54d873d83a91a7
    
    Change-Id: Id05939da35541f9620d03d9d3998e618d0bb9092

diff --git a/extensions/source/propctrlr/browserline.cxx b/extensions/source/propctrlr/browserline.cxx
index 1ffcd84..03756b2 100644
--- a/extensions/source/propctrlr/browserline.cxx
+++ b/extensions/source/propctrlr/browserline.cxx
@@ -274,19 +274,18 @@ namespace pcr
     {
         if( m_pTheParent )
         {
-            OUStringBuffer aText( m_aFtTitle.GetText() );
-
-            while( m_pTheParent->GetTextWidth( aText.makeStringAndClear() ) < 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() );
+            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);
         }
     }
 


More information about the Libreoffice-commits mailing list