Skip to content

Commit

Permalink
Merge pull request #10867 from janpe2/svg-clip-undefined
Browse files Browse the repository at this point in the history
Don't clip if path is undefined in SVG back-end
  • Loading branch information
timvandermeij authored May 30, 2019
2 parents 5adb323 + 343b138 commit d0892e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/display/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,10 @@ SVGGraphics = class SVGGraphics {
if (!this.pendingClip) {
return;
}
if (!current.element) {
this.pendingClip = null;
return;
}

// Add the current path to a clipping path.
const clipId = `clippath${clipCount++}`;
Expand Down

0 comments on commit d0892e4

Please sign in to comment.