From ebf1e9be662b28c19ae905fae77bd59964447eb5 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 20 Jul 2007 09:17:21 +0000 Subject: [PATCH] Fix bug in equals() that made caching effect-less. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@557934 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/properties/FixedLength.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/fo/properties/FixedLength.java b/src/java/org/apache/fop/fo/properties/FixedLength.java index 7acc899bf..e9b0a3f8c 100644 --- a/src/java/org/apache/fop/fo/properties/FixedLength.java +++ b/src/java/org/apache/fop/fo/properties/FixedLength.java @@ -152,7 +152,7 @@ public class FixedLength extends LengthProperty { * {@inheritDoc} */ public boolean equals(Object obj) { - if (obj instanceof EnumProperty) { + if (obj instanceof FixedLength) { return (((FixedLength)obj).millipoints == this.millipoints); } else { return false; -- 2.39.5