aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2005-03-05 03:51:59 +0000
committerGlen Mazza <gmazza@apache.org>2005-03-05 03:51:59 +0000
commit44bb5929dc670688c9ce7771cd06a5e132cd24a8 (patch)
tree80510946ff32e3d954017611e6cb799d273d859b
parentd8d671af6380a755fdd158ca3b27369966b1680f (diff)
downloadxmlgraphics-fop-44bb5929dc670688c9ce7771cd06a5e132cd24a8.tar.gz
xmlgraphics-fop-44bb5929dc670688c9ce7771cd06a5e132cd24a8.zip
----------------------------------------------------------------------
Validation bug fixed on fo:table. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198468 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/fo/flow/Table.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/flow/Table.java b/src/java/org/apache/fop/fo/flow/Table.java
index df5249648..44ee43339 100644
--- a/src/java/org/apache/fop/fo/flow/Table.java
+++ b/src/java/org/apache/fop/fo/flow/Table.java
@@ -199,6 +199,10 @@ public class Table extends FObj {
* @see org.apache.fop.fo.FONode#endOfNode
*/
protected void endOfNode() throws FOPException {
+ if (!tableBodyFound) {
+ missingChildElementError("(marker*,table-column*,table-header?,table-footer?,table-body+)");
+ }
+
getFOEventHandler().endTable(this);
}