]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Return a more 'length' like debug string for numerics with dimension of 1.
authorFinn Bock <bckfnn@apache.org>
Tue, 7 Sep 2004 12:19:48 +0000 (12:19 +0000)
committerFinn Bock <bckfnn@apache.org>
Tue, 7 Sep 2004 12:19:48 +0000 (12:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197920 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/expr/NumericProperty.java

index 7a8151f340dd960128e794bec2d8eabf0d2673ef..ce06c38abe239a0b23ecaa94408798321b403156 100644 (file)
@@ -128,6 +128,10 @@ public class NumericProperty extends Property implements Numeric, Length {
      * debugging.
      */
     public String toString() {
-        return value + "^" + dim;
+       if (dim == 1) {
+               return (int) value + "mpt";
+       } else {
+               return value + "^" + dim;
+       }
     }
 }