1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Don't clip if path is undefined in SVG back-end

This commit is contained in:
Jani Pehkonen 2019-05-28 18:37:15 +03:00
parent f652cf8e5e
commit 343b1381a2

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