From: Finn Bock Date: Tue, 3 Feb 2004 18:25:17 +0000 (+0000) Subject: Re-enable toString() for the properties which wrap another object. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~870 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1e674c805c2568e339442721acf08b8ff00199ca;p=xmlgraphics-fop.git Re-enable toString() for the properties which wrap another object. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197316 13f79535-47bb-0310-9956-ffa450edef68 --- 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; } }