From ff34b5972b98fea8e4f1501c0e9ab0b99194d85f Mon Sep 17 00:00:00 2001 From: Steve Coffman Date: Tue, 23 May 2000 17:14:11 +0000 Subject: [PATCH] These apply Jordon Naftolin's excellent table spacing fix. I'll apply this to 0.13 later on as well. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193379 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/flow/TableBody.java | 5 ----- src/org/apache/fop/fo/flow/TableRow.java | 8 ++------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/org/apache/fop/fo/flow/TableBody.java b/src/org/apache/fop/fo/flow/TableBody.java index 494f59718..440a53b4a 100644 --- a/src/org/apache/fop/fo/flow/TableBody.java +++ b/src/org/apache/fop/fo/flow/TableBody.java @@ -156,11 +156,6 @@ public class TableBody extends FObj { area.increaseHeight(areaContainer.getHeight()); return status; } - // if this is not the last row, add display space - if(i!=numChildren-1) - { - areaContainer.addDisplaySpace(row.getLargestCellHeight()); - } } area.addChild(areaContainer); areaContainer.end(); diff --git a/src/org/apache/fop/fo/flow/TableRow.java b/src/org/apache/fop/fo/flow/TableRow.java index 79c37bf69..503459fa4 100644 --- a/src/org/apache/fop/fo/flow/TableRow.java +++ b/src/org/apache/fop/fo/flow/TableRow.java @@ -185,7 +185,7 @@ public class TableRow extends FObj { } area.addChild(areaContainer); //areaContainer.end(); - area.increaseHeight(areaContainer.getHeight()); + area.addDisplaySpace(areaContainer.getHeight()); return status; } @@ -201,7 +201,7 @@ public class TableRow extends FObj { area.addChild(areaContainer); areaContainer.end(); - area.setHeight(largestCellHeight); + area.addDisplaySpace(largestCellHeight); // bug fix from Eric Schaeffer //area.increaseHeight(largestCellHeight); @@ -220,8 +220,4 @@ public class TableRow extends FObj { public int getAreaHeight() { return areaContainer.getHeight(); } - public int getLargestCellHeight() - { - return largestCellHeight; - } } -- 2.39.5