]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Re-enable toString() for the properties which wrap another object.
authorFinn Bock <bckfnn@apache.org>
Tue, 3 Feb 2004 18:25:17 +0000 (18:25 +0000)
committerFinn Bock <bckfnn@apache.org>
Tue, 3 Feb 2004 18:25:17 +0000 (18:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197316 13f79535-47bb-0310-9956-ffa450edef68

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

index 855f60a00b1103d8280adc8be7119750d3bdf338..237a8b53acd57f72c2c311c70a749469a2e0a439 100644 (file)
@@ -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;
     }
 }