Author: vhennebert
Date: Tue Jul 21 15:09:15 2009
New Revision: 796335

URL: http://svn.apache.org/viewvc?rev=796335&view=rev
Log:
If the last node can be put on the page before the IPD changes, no need to 
trigger the special handling.

Modified:
    
xmlgraphics/fop/branches/Temp_ChangingIPDHack/src/java/org/apache/fop/layoutmgr/PageBreakingAlgorithm.java

Modified: 
xmlgraphics/fop/branches/Temp_ChangingIPDHack/src/java/org/apache/fop/layoutmgr/PageBreakingAlgorithm.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/branches/Temp_ChangingIPDHack/src/java/org/apache/fop/layoutmgr/PageBreakingAlgorithm.java?rev=796335&r1=796334&r2=796335&view=diff
==============================================================================
--- 
xmlgraphics/fop/branches/Temp_ChangingIPDHack/src/java/org/apache/fop/layoutmgr/PageBreakingAlgorithm.java
 (original)
+++ 
xmlgraphics/fop/branches/Temp_ChangingIPDHack/src/java/org/apache/fop/layoutmgr/PageBreakingAlgorithm.java
 Tue Jul 21 15:09:15 2009
@@ -929,6 +929,13 @@
                 bestNodeForIPDChange = node;
             }
         } else {
+            if (node.position == par.size() - 1) {
+                /*
+                 * The whole sequence could actually fit on the last page 
before
+                 * the IPD change. No need to do any special handling.
+                 */
+                ipdChange = false;
+            }
             super.addNode(line, node);
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to