mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Don't clip if path is undefined in SVG back-end
This commit is contained in:
parent
f652cf8e5e
commit
343b1381a2
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue