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

matteocam matteo.campanelli at gmail.com
Mon Jul 13 12:13:43 PDT 2015


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

New commits:
commit 7aae39ef5679db0299c34095781187546cbedff2
Author: matteocam <matteo.campanelli at gmail.com>
Date:   Mon Jul 13 15:12:48 2015 -0400

    Fix wrong definition of bLastParaIsInterrupted
    
    Change-Id: Ib0b65afa6c44e9b6b83c2acef5044d8cd3182a00

diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx
index a8e5be0..148efa7 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -2161,9 +2161,9 @@ NonOverflowingText *Outliner::GetNonOverflowingText() const
         }
         EditTextObject *pTObj = pEditEngine->CreateTextObject(aNonOverflowingTextSelection);
 
-        sal_Int32 nLastLine = GetLineCount(nOverflowingPara)-1;
+        //sal_Int32 nLastLine = GetLineCount(nOverflowingPara)-1;
         bool bLastParaInterrupted =
-            pEditEngine->GetOverflowingLineNum() < nLastLine;
+            pEditEngine->GetOverflowingLineNum() > 0;
 
         return new NonOverflowingText(pTObj, bLastParaInterrupted);
     }


More information about the Libreoffice-commits mailing list