]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixes link placement error by creating an originalAbsoluteHeight
authorJordan Naftolin <jordan@apache.org>
Tue, 19 Dec 2000 20:15:27 +0000 (20:15 +0000)
committerJordan Naftolin <jordan@apache.org>
Tue, 19 Dec 2000 20:15:27 +0000 (20:15 +0000)
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

index 56af8d18100867bec9a4901d274504778d66515b..76df8df3c395d2c810f1d581b91f9d6fe9e13a56 100644 (file)
@@ -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);
     }