Index: /trunk/src/com/kitfox/svg/SVGRoot.java
===================================================================
--- /trunk/src/com/kitfox/svg/SVGRoot.java	(revision 14332)
+++ /trunk/src/com/kitfox/svg/SVGRoot.java	(revision 14333)
@@ -201,6 +201,6 @@
         else if (viewBox != null)
         {
-            xx = (float)viewBox.x;
-            ww = (float)viewBox.width;
+            xx = viewBox.x;
+            ww = viewBox.width;
             width = new NumberWithUnits(ww, NumberWithUnits.UT_PX);
             x = new NumberWithUnits(xx, NumberWithUnits.UT_PX);
@@ -229,6 +229,6 @@
         else if (viewBox != null)
         {
-            yy = (float)viewBox.y;
-            hh = (float)viewBox.height;
+            yy = viewBox.y;
+            hh = viewBox.height;
             height = new NumberWithUnits(hh, NumberWithUnits.UT_PX);
             y = new NumberWithUnits(yy, NumberWithUnits.UT_PX);
@@ -264,4 +264,10 @@
     public void renderToViewport(Graphics2D g) throws SVGException
     {
+        render(g);
+    }
+
+    @Override
+    public void render(Graphics2D g) throws SVGException
+    {
         prepareViewport();
         
