From 119ab29f9d982142e35110fae9e95e9de05c63c6 Mon Sep 17 00:00:00 2001 From: Jordan Naftolin Date: Tue, 19 Dec 2000 20:15:27 +0000 Subject: [PATCH] Fixes link placement error by creating an originalAbsoluteHeight integer and restoring the area's absoluteHeight to this value at the end of the layout method git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193912 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/flow/TableCell.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/apache/fop/fo/flow/TableCell.java b/src/org/apache/fop/fo/flow/TableCell.java index 56af8d181..76df8df3c 100644 --- a/src/org/apache/fop/fo/flow/TableCell.java +++ b/src/org/apache/fop/fo/flow/TableCell.java @@ -219,7 +219,8 @@ public class TableCell extends FObj { } public Status layout(Area area) throws FOPException { - if (this.marker == BREAK_AFTER) { + int originalAbsoluteHeight = area.getAbsoluteHeight(); + if (this.marker == BREAK_AFTER) { return new Status(Status.OK); } @@ -297,7 +298,7 @@ public class TableCell extends FObj { top = areaContainer.getCurrentYPosition(); area.setHeight(getHeight()); // reset absoluteHeight to beginning of row - area.setAbsoluteHeight(areaContainer.getAbsoluteHeight()); + area.setAbsoluteHeight(originalAbsoluteHeight); return new Status(Status.OK); } -- 2.39.5