Ensure that the clipping path is reset when the state is restored (issue 6413)
@ -970,6 +970,9 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
this.current = this.stateStack.pop();
this.ctx.restore();
// Ensure that the clipping path is reset (fixes issue6413.pdf).
this.pendingClip = null;
this.cachedGetSinglePixelWidth = null;
}
},
@ -24,6 +24,7 @@
!close-path-bug.pdf
!issue2948.pdf
!issue6231_1.pdf
!issue6413.pdf
!issue4630.pdf
!issue4909.pdf
!issue5202.pdf
@ -1079,6 +1079,13 @@
"link": true,
"type": "eq"
{ "id": "issue6413",
"file": "pdfs/issue6413.pdf",
"md5": "08926ac7a46e27a4abbb31256b3a7b29",
"rounds": 1,
"link": false,
{ "id": "issue1685",
"file": "pdfs/issue1685.pdf",
"md5": "b22c3741e6bd0e613d3eb3325ad31f7d",