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

New commits:
commit 19014e70ab1ea433594e32899eca15dff79724b0
Author: matteocam <[email protected]>
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;
 }
 
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to