Skip to content

Commit

Permalink
Remove active smask when restoring the initial canvas state
Browse files Browse the repository at this point in the history
Fixes #18444.
  • Loading branch information
calixteman committed Jul 17, 2024
1 parent 86eb5ba commit 219ca38
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/display/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@ class CanvasGraphics {
this.restore();
}

this.current.activeSMask = null;
this.ctx.restore();

if (this.transparentCanvas) {
Expand Down
1 change: 1 addition & 0 deletions test/pdfs/issue18444.pdf.link
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/user-attachments/files/16264442/9.170.1.pdf
10 changes: 10 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10160,5 +10160,15 @@
"firstPage": 2,
"lastPage": 2,
"type": "eq"
},
{
"id": "issue18444",
"file": "pdfs/issue18444.pdf.pdf",
"md5": "233b7b72d67133044338a728d52d58a9",
"rounds": 1,
"link": true,
"firstPage": 1,
"lastPage": 1,
"type": "eq"
}
]

0 comments on commit 219ca38

Please sign in to comment.