We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a05e19 commit 8df7756Copy full SHA for 8df7756
source/parser.cpp
@@ -323,6 +323,8 @@ Path Parser::parsePath(const std::string& string)
323
currentPoint.x = c[3];
324
currentPoint.y = c[4];
325
} else if(command == 'Z' || command == 'z') {
326
+ if(lastCommand == 'Z' || lastCommand == 'z')
327
+ return path;
328
path.close();
329
currentPoint.x = startPoint.x;
330
currentPoint.y = startPoint.y;
0 commit comments