Merge pull request #6414 from Snuffleupagus/issue-6413

Ensure that the clipping path is reset when the state is restored (issue 6413)
This commit is contained in:
Tim van der Meij 2015-09-04 17:53:16 +02:00
commit 2a0e0787c3
4 changed files with 11 additions and 0 deletions

View File

@ -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;
}
},

View File

@ -24,6 +24,7 @@
!close-path-bug.pdf
!issue2948.pdf
!issue6231_1.pdf
!issue6413.pdf
!issue4630.pdf
!issue4909.pdf
!issue5202.pdf

BIN
test/pdfs/issue6413.pdf Normal file

Binary file not shown.

View File

@ -1079,6 +1079,13 @@
"link": true,
"type": "eq"
},
{ "id": "issue6413",
"file": "pdfs/issue6413.pdf",
"md5": "08926ac7a46e27a4abbb31256b3a7b29",
"rounds": 1,
"link": false,
"type": "eq"
},
{ "id": "issue1685",
"file": "pdfs/issue1685.pdf",
"md5": "b22c3741e6bd0e613d3eb3325ad31f7d",