aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaren Lease <klease@apache.org>2001-08-05 15:46:21 +0000
committerKaren Lease <klease@apache.org>2001-08-05 15:46:21 +0000
commit153013669cf1f9db5eaf22cef24a5a7ab19486da (patch)
treed6c2ba2832d63d3081a004231d12ce63303a9c37
parent88def68cf69fdbd170ee3278cecc07b942a98024 (diff)
downloadxmlgraphics-fop-153013669cf1f9db5eaf22cef24a5a7ab19486da.tar.gz
xmlgraphics-fop-153013669cf1f9db5eaf22cef24a5a7ab19486da.zip
Use a copy of BorderAndPadding to fix alignment bugs in header/footer cells
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194392 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/org/apache/fop/fo/flow/TableCell.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/org/apache/fop/fo/flow/TableCell.java b/src/org/apache/fop/fo/flow/TableCell.java
index 23643552c..eeaa99cf6 100644
--- a/src/org/apache/fop/fo/flow/TableCell.java
+++ b/src/org/apache/fop/fo/flow/TableCell.java
@@ -204,7 +204,13 @@ public class TableCell extends FObj {
cellArea.foCreator = this; // G Seshadri
cellArea.setPage(area.getPage());
- cellArea.setBorderAndPadding(propMgr.getBorderAndPadding());
+ try {
+ cellArea.setBorderAndPadding((BorderAndPadding)
+ propMgr.getBorderAndPadding().clone());
+ } catch (CloneNotSupportedException e) {
+ System.err.println("Can't clone BorderAndPadding: " + e) ;
+ cellArea.setBorderAndPadding(propMgr.getBorderAndPadding());
+ }
cellArea.setBackgroundColor(this.backgroundColor);
cellArea.start();