aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/fo/properties/Property.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/properties/Property.java b/src/java/org/apache/fop/fo/properties/Property.java
index 855f60a00..237a8b53a 100644
--- a/src/java/org/apache/fop/fo/properties/Property.java
+++ b/src/java/org/apache/fop/fo/properties/Property.java
@@ -212,6 +212,10 @@ public class Property {
* for debugging.
*/
public String toString() {
- return getString();
+ Object obj = getObject();
+ if (obj != this) {
+ return obj.toString();
+ }
+ return null;
}
}