diff tools/svg2code.py @ 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 c3faebaec0c4
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