diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2007-04-19 15:12:50 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2007-04-19 15:12:50 +0000 |
commit | f99c3b88a78d717ba835dd2ca8e8a9e8321c288b (patch) | |
tree | 412d62b4018285397e205371ce4e8931f58dac4e /src/java/org | |
parent | 23b32dea958c1708f692f9c7199a952ef062b58d (diff) | |
download | xmlgraphics-fop-f99c3b88a78d717ba835dd2ca8e8a9e8321c288b.tar.gz xmlgraphics-fop-f99c3b88a78d717ba835dd2ca8e8a9e8321c288b.zip |
- remove call to addPadding in TraitSetter.addCollapsingBorders
- make the call explicit in TableCellLM, only when necessary. That is, areas holding borders for spanning cells in collapsing mode don't need to have padding set
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@530445 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/TraitSetter.java | 2 | ||||
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/TraitSetter.java b/src/java/org/apache/fop/layoutmgr/TraitSetter.java index 274204122..b50167b16 100644 --- a/src/java/org/apache/fop/layoutmgr/TraitSetter.java +++ b/src/java/org/apache/fop/layoutmgr/TraitSetter.java @@ -208,8 +208,6 @@ public class TraitSetter { if (bps != null) { area.addTrait(Trait.BORDER_END, bps); } - - addPadding(area, bordProps, context); } private static void addPadding(Area area, CommonBorderPaddingBackground bordProps, diff --git a/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java index 2f17a6a25..fabc508b1 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java @@ -380,6 +380,8 @@ public class TableCellLayoutManager extends BlockStackingLayoutManager primaryGridUnit.getFlag(GridUnit.IN_LAST_COLUMN)}; TraitSetter.addCollapsingBorders(curBlockArea, primaryGridUnit.getBorders(), outer, this); + TraitSetter.addPadding(curBlockArea, primaryGridUnit.getBorders(), + false, false, false, false, this); } else { boolean[] outer = new boolean[4]; int dy = yoffset; |