From 49e041ab08ae3acf27e97a5ccc0af6b1ccedd53c Mon Sep 17 00:00:00 2001 From: Kelly Campbell Date: Tue, 6 Feb 2001 23:28:39 +0000 Subject: [PATCH] Fix duplicate ID bug for Tables that flow over a page. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194028 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/flow/Table.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/org/apache/fop/fo/flow/Table.java b/src/org/apache/fop/fo/flow/Table.java index fee17d2de..53d47993e 100644 --- a/src/org/apache/fop/fo/flow/Table.java +++ b/src/org/apache/fop/fo/flow/Table.java @@ -152,8 +152,10 @@ public class Table extends FObj { 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 @@ public class Table extends FObj { area.addDisplaySpace(spaceBefore); } - if (marker == 0) { + if (marker == 0 && areaContainer == null) { // configure id area.getIDReferences().configureID(id, area); } -- 2.39.5