Gracefully close out paths that don’t explicitly terminate the shape (but are still valid)

This commit is contained in:
Christopher Kohnert 2017-06-01 12:57:10 -07:00
parent 52e020ada8
commit 6819b4cb73
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ static bool buildFromPath(Shape &shape, const char *pathDef) {
Point2 controlPoint[2];
Point2 node;
while (true) {
while (*pathDef) {
switch (nodeType) {
case 'M': case 'm':
REQUIRE(contourStart);