incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o..@apache.org
Subject svn commit: r1349212 - /incubator/ooo/trunk/main/sw/source/core/layout/flowfrm.cxx
Date Tue, 12 Jun 2012 09:36:11 GMT
Author: orw
Date: Tue Jun 12 09:36:10 2012
New Revision: 1349212

URL: http://svn.apache.org/viewvc?rev=1349212&view=rev
Log:
#119624# - method <SwFlowFrm::GetUpperSpaceAmountConsideredForPrevFrmAndPageGrid()>
           - consider upper space amount only for page grids in squared page mode

Found by: louqle <louqingle at gmail dot com>
Patch by: Oliver-Rainer Wittmann <orw at apache dot org>
Review by: zjchen <zjchencdl at gmail dot com>

Modified:
    incubator/ooo/trunk/main/sw/source/core/layout/flowfrm.cxx

Modified: incubator/ooo/trunk/main/sw/source/core/layout/flowfrm.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sw/source/core/layout/flowfrm.cxx?rev=1349212&r1=1349211&r2=1349212&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sw/source/core/layout/flowfrm.cxx (original)
+++ incubator/ooo/trunk/main/sw/source/core/layout/flowfrm.cxx Tue Jun 12 09:36:10 2012
@@ -1728,7 +1728,9 @@ SwTwips SwFlowFrm::GetUpperSpaceAmountCo
     {
         nUpperSpaceAmountConsideredForPrevFrmAndPageGrid =
             _GetUpperSpaceAmountConsideredForPrevFrm() +
-            _GetUpperSpaceAmountConsideredForPageGrid( CalcUpperSpace( 0L, 0L, false ) );
+            ( rThis.GetUpper()->GetFmt()->GetDoc()->IsSquaredPageMode()
+              ? _GetUpperSpaceAmountConsideredForPageGrid( CalcUpperSpace( 0, 0, false )
)
+              : 0 );
     }
 
     return nUpperSpaceAmountConsideredForPrevFrmAndPageGrid;



Mime
View raw message