From ce020dd650cbb124e2922b41fe6a0731e1990bdf Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Tue, 11 Mar 2008 11:02:27 +0000 Subject: [PATCH] Fixed a copy-paste error (getPaddingStart instead of getPaddingEnd) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@635884 13f79535-47bb-0310-9956-ffa450edef68 --- .../table/TableCellLayoutManager.java | 2 +- .../table_backgrounds_2.xml | 30 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java index b99df4eb3..f86554dbd 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableCellLayoutManager.java @@ -545,7 +545,7 @@ public class TableCellLayoutManager extends BlockStackingLayoutManager private Block getBackgroundArea(int bpd, int borderBeforeWidth) { CommonBorderPaddingBackground padding = getTableCell().getCommonBorderPaddingBackground(); int paddingStart = padding.getPaddingStart(false, this); - int paddingEnd = padding.getPaddingStart(false, this); + int paddingEnd = padding.getPaddingEnd(false, this); Block block = new Block(); TraitSetter.setProducerID(block, getTable().getId()); diff --git a/test/layoutengine/standard-testcases/table_backgrounds_2.xml b/test/layoutengine/standard-testcases/table_backgrounds_2.xml index 11d6d67f9..300d54234 100644 --- a/test/layoutengine/standard-testcases/table_backgrounds_2.xml +++ b/test/layoutengine/standard-testcases/table_backgrounds_2.xml @@ -36,28 +36,28 @@ - + background on cell - + background on cell - + background on row - + background on row - + background on body - + background on body @@ -68,10 +68,10 @@ background-color="violet"/> - + background on column - + background on column @@ -81,10 +81,10 @@ - + background on table - + background on table @@ -95,17 +95,17 @@ - + - + - + - + - + -- 2.39.5