mirror of https://github.com/Chlumsky/msdfgen.git
Gracefully close out paths that don’t explicitly terminate the shape (but are still valid)
This commit is contained in:
parent
52e020ada8
commit
6819b4cb73
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue