changeset 254:9c33e11c3d39

C nodes.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 09 Oct 2012 21:49:47 +0300
parents 61eb5fb4a5e6
children cac0b6cfebb4
files svg2qd.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/svg2qd.py	Tue Oct 09 21:11:07 2012 +0300
+++ b/svg2qd.py	Tue Oct 09 21:49:47 2012 +0300
@@ -14,6 +14,7 @@
    else :
       return v
 
+
 def getTransform(elem) :
    if "transform" in elem.attrib :
       ntrans = elem.attrib["transform"]
@@ -58,7 +59,7 @@
    vertices = []
    type = ""
    for elem in path.attrib["d"].split(" ") :
-      if elem == "m" or elem == "M":
+      if elem == "m" or elem == "M" or elem == "c":
          out += printVertices(type, vertices, width)
          type = elem
       elif elem == "z" :