[Libreoffice-commits] core.git: Branch 'feature/gsoc14-draw-chained-text-boxes' - editeng/source

matteocam matteo.campanelli at gmail.com
Tue Jun 16 10:42:46 PDT 2015


 editeng/source/outliner/overflowingtxt.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 19014e70ab1ea433594e32899eca15dff79724b0
Author: matteocam <matteo.campanelli at gmail.com>
Date:   Tue Jun 16 13:42:21 2015 -0400

    GetEndingLines should return head if everything is empty
    
    Change-Id: I4921c7a337f1cfe0a5b48d49492ddde9117332d1

diff --git a/editeng/source/outliner/overflowingtxt.cxx b/editeng/source/outliner/overflowingtxt.cxx
index 0f02900..2661c41 100644
--- a/editeng/source/outliner/overflowingtxt.cxx
+++ b/editeng/source/outliner/overflowingtxt.cxx
@@ -27,11 +27,11 @@ using namespace ::rtl;
 
 OUString OverflowingText::GetEndingLines() const
 {
-    // Only some lines in the same para overflowing
+    // Only some lines in the same para overflowing, thus the head gives the ending lines
     if (mHeadTxt == "" && mpMidParas == NULL)
-        return mTailTxt;
+        return mHeadTxt;
 
-    return mHeadTxt;
+    return mTailTxt;
 }
 
 


More information about the Libreoffice-commits mailing list