]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Use a copy of BorderAndPadding to fix alignment bugs in header/footer cells
authorKaren Lease <klease@apache.org>
Sun, 5 Aug 2001 15:46:21 +0000 (15:46 +0000)
committerKaren Lease <klease@apache.org>
Sun, 5 Aug 2001 15:46:21 +0000 (15:46 +0000)
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

index 23643552c6042e640e715162f3201f3dcb83c6ed..eeaa99cf68d9cbcf933bb8eb014f1bb4e3c7ff42 100644 (file)
@@ -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();