You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by kl...@apache.org on 2001/08/05 17:46:21 UTC
cvs commit: xml-fop/src/org/apache/fop/fo/flow TableCell.java
klease 01/08/05 08:46:21
Modified: src/org/apache/fop/fo/flow TableCell.java
Log:
Use a copy of BorderAndPadding to fix alignment bugs in header/footer cells
Revision Changes Path
1.37 +8 -2 xml-fop/src/org/apache/fop/fo/flow/TableCell.java
Index: TableCell.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/TableCell.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- TableCell.java 2001/07/30 20:29:23 1.36
+++ TableCell.java 2001/08/05 15:46:21 1.37
@@ -1,5 +1,5 @@
/*
- * -- $Id: TableCell.java,v 1.36 2001/07/30 20:29:23 tore Exp $ --
+ * -- $Id: TableCell.java,v 1.37 2001/08/05 15:46:21 klease Exp $ --
* Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
* For details on use and redistribution please refer to the
* LICENSE file included with these sources.
@@ -204,7 +204,13 @@
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();
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org