diff --git a/ext/import-svg.cpp b/ext/import-svg.cpp index 31ffbc1..1c770b4 100644 --- a/ext/import-svg.cpp +++ b/ext/import-svg.cpp @@ -277,6 +277,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); }