aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/fo')
-rw-r--r--src/java/org/apache/fop/fo/flow/TableFObj.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/flow/TableFObj.java b/src/java/org/apache/fop/fo/flow/TableFObj.java
index 65d32b76a..359530cdc 100644
--- a/src/java/org/apache/fop/fo/flow/TableFObj.java
+++ b/src/java/org/apache/fop/fo/flow/TableFObj.java
@@ -148,7 +148,8 @@ public abstract class TableFObj extends FObj {
TableRow row = (TableRow) this;
- for (i = colSpan; --i >= 0;) {
+ for (i = colSpan;
+ --i >= 0 || row.pendingSpans.size() < cell.getColumnNumber();) {
row.pendingSpans.add(null);
}