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:
commit
d0892e46e2
@ -1137,6 +1137,10 @@ SVGGraphics = class SVGGraphics {
|
|||||||
if (!this.pendingClip) {
|
if (!this.pendingClip) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!current.element) {
|
||||||
|
this.pendingClip = null;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Add the current path to a clipping path.
|
// Add the current path to a clipping path.
|
||||||
const clipId = `clippath${clipCount++}`;
|
const clipId = `clippath${clipCount++}`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user