diff options
author | Karen Lease <klease@apache.org> | 2001-08-05 15:46:21 +0000 |
---|---|---|
committer | Karen Lease <klease@apache.org> | 2001-08-05 15:46:21 +0000 |
commit | 153013669cf1f9db5eaf22cef24a5a7ab19486da (patch) | |
tree | d6c2ba2832d63d3081a004231d12ce63303a9c37 | |
parent | 88def68cf69fdbd170ee3278cecc07b942a98024 (diff) | |
download | xmlgraphics-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.java | 8 |
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(); |