From 153013669cf1f9db5eaf22cef24a5a7ab19486da Mon Sep 17 00:00:00 2001 From: Karen Lease Date: Sun, 5 Aug 2001 15:46:21 +0000 Subject: [PATCH] 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 --- src/org/apache/fop/fo/flow/TableCell.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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(); -- 2.39.5