aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJordan Naftolin <jordan@apache.org>2000-12-19 20:15:27 +0000
committerJordan Naftolin <jordan@apache.org>2000-12-19 20:15:27 +0000
commit119ab29f9d982142e35110fae9e95e9de05c63c6 (patch)
tree66f3f013b9453406263fb06ea52ff47e58737abe /src
parentc305cef06070ec284c706581a4c54dcf5a941c80 (diff)
downloadxmlgraphics-fop-119ab29f9d982142e35110fae9e95e9de05c63c6.tar.gz
xmlgraphics-fop-119ab29f9d982142e35110fae9e95e9de05c63c6.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/org/apache/fop/fo/flow/TableCell.java5
1 files 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);
}