Merge pull request #10867 from janpe2/svg-clip-undefined

Don't clip if path is undefined in SVG back-end
This commit is contained in:
Tim van der Meij 2019-05-30 13:43:05 +02:00 committed by GitHub
commit d0892e46e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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++}`;