diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-08-29 11:52:38 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-08-29 11:52:38 +0000 |
commit | 5ede4810666419bbd502e7765f898906909b50f7 (patch) | |
tree | 33e25adc63f92eecc6dd43bf81e3d180f0c9515d | |
parent | 149680a54683a81b4bd09a9bcc2a37aa665d2629 (diff) | |
download | xmlgraphics-fop-5ede4810666419bbd502e7765f898906909b50f7.tar.gz xmlgraphics-fop-5ede4810666419bbd502e7765f898906909b50f7.zip |
Set the background traits after the BPD and IPD are set.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264116 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java index 2819383ae..a304a0dd4 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java @@ -317,13 +317,7 @@ public class TableCellLayoutManager extends BlockStackingLayoutManager implement getPSLM().addIDToPage(fobj.getId()); - if (isSeparateBorderModel()) { - if (!emptyCell || fobj.showEmptyCells()) { - TraitSetter.addBorders(curBlockArea, fobj.getCommonBorderPaddingBackground()); - TraitSetter.addBackground(curBlockArea, fobj.getCommonBorderPaddingBackground()); - } - } else { - TraitSetter.addBackground(curBlockArea, fobj.getCommonBorderPaddingBackground()); + if (!isSeparateBorderModel()) { boolean[] outer = new boolean[] { gridUnit.getFlag(GridUnit.FIRST_IN_TABLE), gridUnit.getFlag(GridUnit.LAST_IN_TABLE), @@ -402,6 +396,15 @@ public class TableCellLayoutManager extends BlockStackingLayoutManager implement curBlockArea.setBPD(contentBPD); + if (isSeparateBorderModel()) { + if (!emptyCell || fobj.showEmptyCells()) { + TraitSetter.addBorders(curBlockArea, fobj.getCommonBorderPaddingBackground()); + TraitSetter.addBackground(curBlockArea, fobj.getCommonBorderPaddingBackground()); + } + } else { + TraitSetter.addBackground(curBlockArea, fobj.getCommonBorderPaddingBackground()); + } + flush(); curBlockArea = null; |