# HG changeset patch # User Laurent Bessard # Date 1346751081 -7200 # Node ID 1d77d700761fd59c6f526a0618a26dcf21ee8de5 # Parent 48966b6ceedc808630472a9c6d6324597c5acc3d Fix bug when trying to launch Inkscape and not installed. No error message was displayed on Windows. diff -r 48966b6ceedc -r 1d77d700761f 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