Browse code

Accept floating bounding box (by Krzysztof.Goj).

Fies issue 16.

Jose.R.Fonseca authored on 17/06/2009 22:20:53
Showing 1 changed files

  • xdot.py index 59532a5..e5799b2 100755
... ...
@@ -1063,7 +1063,7 @@ class XDotParser(DotParser):
1063 1063
             if not bb:
1064 1064
                 return
1065 1065
 
1066
-            xmin, ymin, xmax, ymax = map(int, bb.split(","))
1066
+            xmin, ymin, xmax, ymax = map(float, bb.split(","))
1067 1067
 
1068 1068
             self.xoffset = -xmin
1069 1069
             self.yoffset = -ymax