diff options
Diffstat (limited to 'src/org/apache/fop/svg')
-rw-r--r-- | src/org/apache/fop/svg/Symbol.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/apache/fop/svg/Symbol.java b/src/org/apache/fop/svg/Symbol.java index 5463055ff..f119e220e 100644 --- a/src/org/apache/fop/svg/Symbol.java +++ b/src/org/apache/fop/svg/Symbol.java @@ -118,16 +118,16 @@ public class Symbol extends SVGObj { float height = 0; try { if(st.hasMoreTokens()) { - x = Float.parseFloat(st.nextToken()); + x = Double.valueOf(st.nextToken()).floatValue(); } if(st.hasMoreTokens()) { - y = Float.parseFloat(st.nextToken()); + y = Double.valueOf(st.nextToken()).floatValue(); } if(st.hasMoreTokens()) { - width = Float.parseFloat(st.nextToken()); + width = Double.valueOf(st.nextToken()).floatValue(); } if(st.hasMoreTokens()) { - height = Float.parseFloat(st.nextToken()); + height = Double.valueOf(st.nextToken()).floatValue(); } } catch(Exception e) { } |