1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

SVG parser: handling paths that aren't correctly closed.

This commit is contained in:
jules 2014-04-24 17:04:34 +01:00
parent 8cad74a22a
commit 516b7bcc58

View file

@ -349,6 +349,11 @@ public:
if (! carryOn)
break;
}
// paths that finish back at their start position often seem to be
// left without a 'z', so need to be closed explicitly..
if (path.getCurrentPosition() == subpathStart)
path.closeSubPath();
}
private: