diff --git a/ext/import-svg.cpp b/ext/import-svg.cpp index c8a376d..ecebab3 100644 --- a/ext/import-svg.cpp +++ b/ext/import-svg.cpp @@ -253,6 +253,7 @@ static bool buildFromPath(Shape &shape, const char *pathDef, double size) { } contourStart &= nodeType == 'M' || nodeType == 'm'; prevNode = node; + prevNodeType = nodeType; readNodeType(nodeType, pathDef); consumeWhitespace(pathDef); }