aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/flow/Table.java
diff options
context:
space:
mode:
authorJordan Naftolin <jordan@apache.org>2000-06-29 22:24:01 +0000
committerJordan Naftolin <jordan@apache.org>2000-06-29 22:24:01 +0000
commit3206ba19bca8b4b972b7d33f0ee8f3581ee6b691 (patch)
treec59f758a544f492e9519aedc38cbe323cf4277f2 /src/org/apache/fop/fo/flow/Table.java
parent141bf4a14acc71eafd49961f2d470c990407aced (diff)
downloadxmlgraphics-fop-3206ba19bca8b4b972b7d33f0ee8f3581ee6b691.tar.gz
xmlgraphics-fop-3206ba19bca8b4b972b7d33f0ee8f3581ee6b691.zip
fixes duplicate id on overflow bug
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193451 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/flow/Table.java')
-rw-r--r--src/org/apache/fop/fo/flow/Table.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/org/apache/fop/fo/flow/Table.java b/src/org/apache/fop/fo/flow/Table.java
index 81f8b6e2c..1da227493 100644
--- a/src/org/apache/fop/fo/flow/Table.java
+++ b/src/org/apache/fop/fo/flow/Table.java
@@ -86,7 +86,7 @@ public class Table extends FObj {
ColorType borderColor;
int borderWidth;
int borderStyle;
-
+ String id;
Vector columns = new Vector();
int currentColumnNumber = 0;
@@ -136,11 +136,15 @@ public class Table extends FObj {
this.properties.get("border-width").getLength().mvalue();
this.borderStyle =
this.properties.get("border-style").getEnum();
+ this. id =
+ this.properties.get("id").getString();
if (area instanceof BlockArea) {
area.end();
}
+ area.getIDReferences().createID(id);
+
this.marker = 0;
if (breakBefore == BreakBefore.PAGE) {
@@ -161,9 +165,8 @@ public class Table extends FObj {
}
if ( marker==0 ) {
- // initialize id
- String id = this.properties.get("id").getString();
- area.getIDReferences().initializeID(id,area);
+ // configure id
+ area.getIDReferences().configureID(id,area);
}
this.areaContainer =