]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Avoiding error message ("getBaseLength called without context") when width="100%...
authorJeremias Maerki <jeremias@apache.org>
Fri, 1 Sep 2006 18:34:34 +0000 (18:34 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 1 Sep 2006 18:34:34 +0000 (18:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@439417 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/properties/LengthRangeProperty.java

index 8697eab849b26268304976b7cede4fb653d138ab..d0e47806f1a7048e6dafed3090b6ef555fdfffe6 100644 (file)
@@ -76,7 +76,7 @@ public class LengthRangeProperty extends Property implements CompoundDatatype {
                 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);