Fix bug when trying to launch Inkscape and not installed. No error message was displayed on Windows.
--- 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