diff options
author | Jeremias Maerki <jeremias@apache.org> | 2007-07-20 09:17:21 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2007-07-20 09:17:21 +0000 |
commit | ebf1e9be662b28c19ae905fae77bd59964447eb5 (patch) | |
tree | 90f25d34e9728bd3f57bb32ddd40b29a2acdbf56 /src | |
parent | 4f6fbb2785bf742bbc98f1778277fd469988b2fc (diff) | |
download | xmlgraphics-fop-ebf1e9be662b28c19ae905fae77bd59964447eb5.tar.gz xmlgraphics-fop-ebf1e9be662b28c19ae905fae77bd59964447eb5.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/fo/properties/FixedLength.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; |