]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
properly check if row finished
authorKeiron Liddle <keiron@apache.org>
Fri, 27 Dec 2002 14:00:44 +0000 (14:00 +0000)
committerKeiron Liddle <keiron@apache.org>
Fri, 27 Dec 2002 14:00:44 +0000 (14:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195810 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/layoutmgr/table/Row.java

index c12bbba1166fcbdba0dd620f0e000a76f712bc7a..beccceb70bc19803c50fb7e4309916b2a64c43a0 100644 (file)
@@ -200,7 +200,16 @@ public class Row extends BlockStackingLayoutManager {
 
         MinOptMax rowSize = new MinOptMax(min, opt, max);
 
-        setFinished(true);
+        boolean fin = true;
+        cellcount = 0;
+        while ((curLM = getCellLM(cellcount++)) != null) {
+            if (!curLM.isFinished()) {
+                fin = false;
+                break;
+            }
+        }
+
+        setFinished(fin);
         RowPosition rp = new RowPosition(this, breakList.size() - 1, breakList);
         BreakPoss breakPoss = new BreakPoss(rp);
         if (over) {