changeset 258:ff542421ed33

Merged.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 09 Oct 2012 23:45:05 +0300
parents 370521e7a960 (current diff) 31ce6d32408f (diff)
children be2ca95af493
files
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/svg2qd.py	Tue Oct 09 23:44:36 2012 +0300
+++ b/svg2qd.py	Tue Oct 09 23:45:05 2012 +0300
@@ -58,12 +58,15 @@
    vertices = []
    type = ""
    for elem in path.attrib["d"].split(" ") :
-      if elem == "m" or elem == "M" or elem == "c" or elem == "C":
+      if elem == "m" or elem == "M" :
          printVertices(type, vertices, width, level)
          vertices = []
          type = elem
       elif elem == "z" :
          vertices.append("Z")
+      elif elem == "c" or elem == "C" :
+         print "Curves not supported! Path ID '{}':\n{}".format(path.attrib["id"], path.attrib["d"])
+         sys.exit(0)
       else :
          tmp = elem.split(",")
          px = float(tmp[0])