Fix bug when trying to launch Inkscape and not installed. No error message was displayed on Windows.
authorLaurent Bessard
Tue, 04 Sep 2012 11:31:21 +0200
changeset 755 1d77d700761f
parent 754 48966b6ceedc
child 756 7eb469275611
Fix bug when trying to launch Inkscape and not installed. No error message was displayed on Windows.
docutil/docsvg.py
--- a/docutil/docsvg.py	Sun Sep 02 01:18:50 2012 +0200
+++ b/docutil/docsvg.py	Tue Sep 04 11:31:21 2012 +0200
@@ -47,9 +47,8 @@
 def open_svg(svgfile):
     """ Generic function to open SVG file """
     if wx.Platform == '__WXMSW__' :
-        svgexepath = get_inkscape_path()
         try:
-            open_win_svg(svgexepath , svgfile)
+            open_win_svg(get_inkscape_path(), svgfile)
         except:
             wx.MessageBox("Inkscape is not found or installed !")
             return None