Python bug in mDraw


#1

I have created some SVG files from Inkscape and imported them into mDraw. Most of them worked but some of them mDraw could not even open . I later found out a bug in svgparser.py:

if len(segList) == 0:
segList.append(p2[0], p2[1])
return segList

and I changed it to

if len(segList) == 0:
segList.append((p2[0], p2[1]))
return segList

And now mDraw can open those SVG files that it failed to open


#2

:smiley: thanks. Fixed my issue.


#3

You are quite welcome


#4

Damn, I guess you both know how to recompile mdraw, would you mind pointing me in the right direction ? :wink:

cc @franklee @Dan


#5