Bug with float window size fixed
authorlbessard
Tue, 01 Jul 2008 09:00:40 +0200
changeset 191 5b1fa0e06284
parent 190 be969d4694c7
child 192 f0482f1ae901
Bug with float window size fixed
plugins/svgui/svgui.py
--- a/plugins/svgui/svgui.py	Mon Jun 30 17:38:28 2008 +0200
+++ b/plugins/svgui/svgui.py	Tue Jul 01 09:00:40 2008 +0200
@@ -183,8 +183,13 @@
         
         doc = SVGDocument(self.GetSVGFilePath())
         root_element = doc.GetRootElement()
-        window_size = (int(root_element.GetAttribute("width")),
-                       int(root_element.GetAttribute("height")))
+        window_size = (int(float(root_element.GetAttribute("width"))),
+                       int(float(root_element.GetAttribute("height"))))
+
+##        svgfilepath = self.GetSVGFilePath()
+##        xmlfilepath = self.GetFilePath()
+##        shutil.copy(svgfilepath, buildpath)
+##        shutil.copy(xmlfilepath, buildpath)
         
         generator = _SVGUICGenerator(self.GetElementsByType(), self.GetSVGFilePath(), self.GetFilePath(), self.GetCurrentLocation())
         generator.GenerateProgram(window_size, buildpath, progname)