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 je...@apache.org on 2006/09/01 20:34:34 UTC

svn commit: r439417 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/LengthRangeProperty.java

Author: jeremias
Date: Fri Sep  1 11:34:34 2006
New Revision: 439417

URL: http://svn.apache.org/viewvc?rev=439417&view=rev
Log:
Avoiding error message ("getBaseLength called without context") when width="100%" on a table.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/LengthRangeProperty.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/LengthRangeProperty.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/LengthRangeProperty.java?rev=439417&r1=439416&r2=439417&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/LengthRangeProperty.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/properties/LengthRangeProperty.java Fri Sep  1 11:34:34 2006
@@ -76,7 +76,7 @@
                 if (len != null) {
                     if ((len instanceof PercentLength
                                 && ((PercentLength) len).getPercentage() < 0)
-                            || len.getValue() < 0) {
+                            || (len.isAbsolute() && len.getValue() < 0)) {
                         log.warn("Replaced negative value for " + getName()
                                 + " with 0mpt");
                         p = new FixedLength(0);



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org