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:
parent
8cad74a22a
commit
516b7bcc58
1 changed files with 5 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue