From b5013344d50ad696350115442d9066473621db69 Mon Sep 17 00:00:00 2001 From: Jordan Naftolin Date: Wed, 28 Jun 2000 17:57:32 +0000 Subject: [PATCH] fixes duplicate id on overflow bug git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193446 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/flow/Block.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/org/apache/fop/fo/flow/Block.java b/src/org/apache/fop/fo/flow/Block.java index 40e0866a0..5d9e19ed3 100644 --- a/src/org/apache/fop/fo/flow/Block.java +++ b/src/org/apache/fop/fo/flow/Block.java @@ -90,6 +90,8 @@ public class Block extends FObjMixed { int paddingLeft; int paddingRight; + String id; + ColorType borderColor; int borderWidth; int borderStyle; @@ -168,6 +170,9 @@ public class Block extends FObjMixed { this.borderStyle = this.properties.get("border-style").getEnum(); + this.id = + this.properties.get("id").getString(); + if (area instanceof BlockArea) { area.end(); } @@ -182,6 +187,8 @@ public class Block extends FObjMixed { startIndent += bodyIndent + distanceBetweenStarts; } + area.getIDReferences().createID(id,area); + this.marker = 0; if (breakBefore == BreakBefore.PAGE) { @@ -206,9 +213,7 @@ public class Block extends FObjMixed { } if ( marker==0 ) { - // initialize id - String id = this.properties.get("id").getString(); - area.getIDReferences().initializeID(id,area); + area.getIDReferences().configureID(id,area); } this.blockArea = @@ -225,7 +230,6 @@ public class Block extends FObjMixed { blockArea.setBorderWidth(borderWidth, borderWidth, borderWidth, borderWidth); blockArea.setBorderColor(borderColor, borderColor, borderColor, borderColor); blockArea.start(); - layoutStart(area); // performs blockArea.setAbsoluteHeight(area.getAbsoluteHeight()); blockArea.setIDReferences(area.getIDReferences()); -- 2.39.5