You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by bc...@apache.org on 2004/02/03 19:25:17 UTC

cvs commit: xml-fop/src/java/org/apache/fop/fo/properties Property.java

bckfnn      2004/02/03 10:25:17

  Modified:    src/java/org/apache/fop/fo/properties Property.java
  Log:
  Re-enable toString() for the properties which wrap another object.
  
  Revision  Changes    Path
  1.3       +6 -2      xml-fop/src/java/org/apache/fop/fo/properties/Property.java
  
  Index: Property.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/properties/Property.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Property.java	2 Feb 2004 16:08:26 -0000	1.2
  +++ Property.java	3 Feb 2004 18:25:17 -0000	1.3
  @@ -212,6 +212,10 @@
        * for debugging.
        */
       public String toString() {
  -        return getString();
  +        Object obj = getObject();
  +        if (obj != this) {
  +            return obj.toString();
  +        }
  +        return null;
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org