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

matteocam matteo.campanelli at gmail.com
Wed Jul 16 08:49:25 PDT 2014


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

New commits:
commit c9b29b357cd45e964e372241b010c32fcc67eb93
Author: matteocam <matteo.campanelli at gmail.com>
Date:   Wed Jul 16 17:48:36 2014 +0200

    IsPageOverflow discards null heights/widths
    
    Change-Id: I1f1728deeffaa0571f80776e5f011a594632b8cc

diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index ad7e465..b291967 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -359,9 +359,9 @@ bool IsPageOverflow(const sal_uInt32 aStatus, bool isVertical,
     const bool bTextGrowX=(aStatus & EE_STAT_TEXTWIDTHCHANGED) !=0;
     const bool bTextGrowY=(aStatus & EE_STAT_TEXTHEIGHTCHANGED) !=0;
 
-    const bPageExpansionX = ( aPrevPaperSize.Width() != 0 ) && // XXX
+    const bool bPageExpansionX = ( aPrevPaperSize.Width() != 0 ) && // XXX
                             ( aPaperSize.Width() > aPrevPaperSize.Width() );
-    const bPageExpansionY = ( aPrevPaperSize.Height() != 0 ) && // XXX
+    const bool bPageExpansionY = ( aPrevPaperSize.Height() != 0 ) && // XXX
                             ( aPaperSize.Height() > aPrevPaperSize.Height() );
 
     return ( bTextGrowY && !isVertical && bPageExpansionY ) ||


More information about the Libreoffice-commits mailing list