Author: adelmelle
Date: Thu Jul  9 06:32:24 2009
New Revision: 792410

URL: http://svn.apache.org/viewvc?rev=792410&view=rev
Log:
Changed explicit check to assert

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

Modified: 
xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/PageBreakingAlgorithm.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/PageBreakingAlgorithm.java?rev=792410&r1=792409&r2=792410&view=diff
==============================================================================
--- 
xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/PageBreakingAlgorithm.java
 (original)
+++ 
xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/PageBreakingAlgorithm.java
 Thu Jul  9 06:32:24 2009
@@ -877,7 +877,8 @@
                 }
             }
         }
-        return (bestActiveNode == null) ? -1 : bestActiveNode.line;
+        assert (bestActiveNode != null);
+        return bestActiveNode.line;
     }
 
     /**



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

Reply via email to