Browse Source

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

tags/2021-05-28
jules 11 years ago
parent
commit
516b7bcc58
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      modules/juce_gui_basics/drawables/juce_SVGParser.cpp

+ 5
- 0
modules/juce_gui_basics/drawables/juce_SVGParser.cpp 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:


Loading…
Cancel
Save