From 14e63efe0a40c52b353afdf7fbc046897b0683bf Mon Sep 17 00:00:00 2001
From: "Andreas L. Delmelle" <adelmelle@apache.org>
Date: Wed, 31 Jan 2007 20:34:08 +0000
Subject: Fix for bugzilla 41503: take into account that column-numbers need
 not be monotonically increasing

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@501977 13f79535-47bb-0310-9956-ffa450edef68
---
 src/java/org/apache/fop/fo/flow/TableFObj.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/java/org/apache/fop/fo')

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);
             }
             
-- 
cgit v1.2.3