From: Jeremias Maerki Date: Tue, 3 Jan 2006 17:35:23 +0000 (+0000) Subject: Bugfix: TableCell did not properly report that it generates reference-areas which... X-Git-Tag: fop-0_92-beta~230 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=10f3613e8766f3db23e3bcd9176fd008336cce91;p=xmlgraphics-fop.git Bugfix: TableCell did not properly report that it generates reference-areas which could lead to wrong inherited values for start-indent and end-indent. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@365689 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/flow/TableCell.java b/src/java/org/apache/fop/fo/flow/TableCell.java index 5c20982bb..e11564a32 100644 --- a/src/java/org/apache/fop/fo/flow/TableCell.java +++ b/src/java/org/apache/fop/fo/flow/TableCell.java @@ -1,5 +1,5 @@ /* - * Copyright 1999-2005 The Apache Software Foundation. + * Copyright 1999-2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ import org.apache.fop.apps.FOPException; import org.apache.fop.datatypes.Length; import org.apache.fop.datatypes.Numeric; import org.apache.fop.fo.FONode; -import org.apache.fop.fo.FObj; import org.apache.fop.fo.PropertyList; import org.apache.fop.fo.ValidationException; import org.apache.fop.fo.properties.CommonAccessibility; @@ -201,6 +200,11 @@ public class TableCell extends TableFObj { } } + /** @see org.apache.fop.fo.FObj#generatesReferenceAreas() */ + public boolean generatesReferenceAreas() { + return true; + } + /** * Set position relative to table (set by body?) * diff --git a/status.xml b/status.xml index 41c1e55b7..2c9bad19a 100644 --- a/status.xml +++ b/status.xml @@ -27,6 +27,10 @@ + + Bugfix: TableCell did not properly report that it generates reference-areas + which could lead to wrong inherited values for start-indent and end-indent. + The font loading code now reads the encoding value from the XML font metrics file so that fonts like Symbol and ZapfDingbats can be embedded explicitely (Required by PDF/A). diff --git a/test/fotree/testcases/indent-inheritance3a.fo b/test/fotree/testcases/indent-inheritance3a.fo new file mode 100644 index 000000000..6e613ed93 --- /dev/null +++ b/test/fotree/testcases/indent-inheritance3a.fo @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + margin-left unchanged + + + + + + + + + + + + + + + + + + + + margin-left, reset on table + + + + + + + + + + + + + + + + + + + + margin-left, reset on body + + + + + + + + + + + + + + + + + + + + start-indent unchanged + + + + + + + + +