From: Vincent Hennebert Date: Wed, 7 Feb 2007 16:13:54 +0000 (+0000) Subject: The spec explicitely does not specify what should be done when bpd is set to a differ... X-Git-Tag: fop-0_94~225 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b09b2d79d375dcc0f2134270958b3f60319c8747;p=xmlgraphics-fop.git The spec explicitely does not specify what should be done when bpd is set to a different value than "auto" for fo:table. Display a warning that "auto" will be used as a fall back. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@504602 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/flow/Table.java b/src/java/org/apache/fop/fo/flow/Table.java index 55fbcf5cf..a6eb658eb 100644 --- a/src/java/org/apache/fop/fo/flow/Table.java +++ b/src/java/org/apache/fop/fo/flow/Table.java @@ -130,7 +130,12 @@ public class Table extends TableFObj { //Bind extension properties widowContentLimit = pList.get(PR_X_WIDOW_CONTENT_LIMIT).getLength(); orphanContentLimit = pList.get(PR_X_ORPHAN_CONTENT_LIMIT).getLength(); - + + if (!blockProgressionDimension.getOptimum(null).isAuto()) { + attributeWarning("only a value of \"auto\" for block-progression-dimension has a well-specified" + + " behavior on fo:table. Falling back to \"auto\""); + // Anyway, the bpd of a table is not used by the layout code + } if (borderCollapse != EN_SEPARATE) { //TODO Remove once the collapsing border is at least marginally working. borderCollapse = EN_SEPARATE;