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

matteocam matteo.campanelli at gmail.com
Tue Jun 16 13:40:41 PDT 2015


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

New commits:
commit 5e4e1e32407b40d526e54e58c69256a7d740ced2
Author: matteocam <matteo.campanelli at gmail.com>
Date:   Tue Jun 16 16:39:41 2015 -0400

    Fixed GetEndingLines()
    
    Change-Id: I41adadae9b5ff4d9f3221b48fd939202ef93f9bb

diff --git a/editeng/source/outliner/overflowingtxt.cxx b/editeng/source/outliner/overflowingtxt.cxx
index d5fa910..f591dac 100644
--- a/editeng/source/outliner/overflowingtxt.cxx
+++ b/editeng/source/outliner/overflowingtxt.cxx
@@ -25,8 +25,9 @@
 
 OUString OverflowingText::GetEndingLines() const
 {
-    // Only some lines in the same para overflowing, thus the head gives the ending lines
-    if (mHeadTxt == "" && mpMidParas == NULL)
+    // If the only overflowing part is some lines in a paragraph,
+    // the end of the overflowing text is its head.
+    if (mTailTxt == "" && mpMidParas == NULL)
         return mHeadTxt;
 
     return mTailTxt;


More information about the Libreoffice-commits mailing list