Mercurial > MadButterfly
changeset 373:07ca7681f43b
Avoid set stroke width on shape with stroke=none
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 27 Mar 2009 15:39:06 +0800 |
parents | 2212f515584c |
children | e1ff44aa3b6f |
files | tools/svg2code.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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