aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/properties/FixedLength.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2007-07-20 09:17:21 +0000
committerJeremias Maerki <jeremias@apache.org>2007-07-20 09:17:21 +0000
commitebf1e9be662b28c19ae905fae77bd59964447eb5 (patch)
tree90f25d34e9728bd3f57bb32ddd40b29a2acdbf56 /src/java/org/apache/fop/fo/properties/FixedLength.java
parent4f6fbb2785bf742bbc98f1778277fd469988b2fc (diff)
downloadxmlgraphics-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/java/org/apache/fop/fo/properties/FixedLength.java')
-rw-r--r--src/java/org/apache/fop/fo/properties/FixedLength.java2
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;