# HG changeset patch # User Thinker K.F. Li # Date 1238139546 -28800 # Node ID 07ca7681f43bfab26feb31a0ce373b863cf22679 # Parent 2212f515584c9d5c521dd2447095a6a711155eb0 Avoid set stroke width on shape with stroke=none diff -r 2212f515584c -r 07ca7681f43b tools/svg2code.py --- a/tools/svg2code.py Fri Mar 27 13:07:50 2009 +0800 +++ b/tools/svg2code.py Fri Mar 27 15:39:06 2009 +0800 @@ -197,7 +197,7 @@ print >> codefo, 'STROKE_WIDTH([%s], %f)dnl' % ( node_id, stroke_width) pass - elif prop_map.has_key('stroke'): + elif prop_map.has_key('stroke') and prop_map['stroke'] != 'none': print >> codefo, 'STROKE_WIDTH([%s], %f)dnl' % ( node_id, 0.5) pass