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/07 00:28:41 UTC
cvs commit: xml-fop/src/org/apache/fop/fo/flow Table.java
kellyc 01/02/06 15:28:40
Modified: src/org/apache/fop/fo/flow Table.java
Log:
Fix duplicate ID bug for Tables that flow over a page.
Revision Changes Path
1.26 +6 -4 xml-fop/src/org/apache/fop/fo/flow/Table.java
Index: Table.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Table.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- Table.java 2001/01/25 15:05:53 1.25
+++ Table.java 2001/02/06 23:28:39 1.26
@@ -1,4 +1,4 @@
-/*-- $Id: Table.java,v 1.25 2001/01/25 15:05:53 eschaeffer Exp $ --
+/*-- $Id: Table.java,v 1.26 2001/02/06 23:28:39 kellyc Exp $ --
============================================================================
The Apache Software License, Version 1.1
@@ -152,8 +152,10 @@
if (area instanceof BlockArea) {
area.end();
}
-
- area.getIDReferences().createID(id);
+ if (this.areaContainer == null) { // check if anything was previously laid out
+ area.getIDReferences().createID(id);
+ }
+
this.marker = 0;
@@ -174,7 +176,7 @@
area.addDisplaySpace(spaceBefore);
}
- if (marker == 0) {
+ if (marker == 0 && areaContainer == null) {
// configure id
area.getIDReferences().configureID(id, area);
}