From: Karen Lease Date: Sun, 5 Aug 2001 15:46:21 +0000 (+0000) Subject: Use a copy of BorderAndPadding to fix alignment bugs in header/footer cells X-Git-Tag: fop-0_20_0~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=153013669cf1f9db5eaf22cef24a5a7ab19486da;p=xmlgraphics-fop.git 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 --- 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();