You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ke...@apache.org on 2001/02/01 03:38:38 UTC
cvs commit: xml-fop/src/org/apache/fop/fo/flow TableBody.java
keiron 01/01/31 18:38:38
Modified: src/org/apache/fop/fo/flow TableBody.java
Log:
throws a more useful error if non-row inside table body
Revision Changes Path
1.25 +6 -2 xml-fop/src/org/apache/fop/fo/flow/TableBody.java
Index: TableBody.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/TableBody.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- TableBody.java 2001/01/25 15:05:53 1.24
+++ TableBody.java 2001/02/01 02:38:37 1.25
@@ -1,4 +1,4 @@
-/*-- $Id: TableBody.java,v 1.24 2001/01/25 15:05:53 eschaeffer Exp $ --
+/*-- $Id: TableBody.java,v 1.25 2001/02/01 02:38:37 keiron Exp $ --
============================================================================
The Apache Software License, Version 1.1
@@ -190,7 +190,11 @@
TableRow lastRow = null;
boolean endKeepGroup = true;
for (int i = this.marker; i < numChildren; i++) {
- TableRow row = (TableRow) children.elementAt(i);
+ Object child = children.elementAt(i);
+ if(!(child instanceof TableRow)) {
+ throw new FOPException("Currently only Table Rows are supported in table body, header and footer");
+ }
+ TableRow row = (TableRow) child;
row.setColumns(columns);
row.doSetup(areaContainer);