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:
commit
2a0e0787c3
@ -970,6 +970,9 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||||||
this.current = this.stateStack.pop();
|
this.current = this.stateStack.pop();
|
||||||
this.ctx.restore();
|
this.ctx.restore();
|
||||||
|
|
||||||
|
// Ensure that the clipping path is reset (fixes issue6413.pdf).
|
||||||
|
this.pendingClip = null;
|
||||||
|
|
||||||
this.cachedGetSinglePixelWidth = null;
|
this.cachedGetSinglePixelWidth = null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -24,6 +24,7 @@
|
|||||||
!close-path-bug.pdf
|
!close-path-bug.pdf
|
||||||
!issue2948.pdf
|
!issue2948.pdf
|
||||||
!issue6231_1.pdf
|
!issue6231_1.pdf
|
||||||
|
!issue6413.pdf
|
||||||
!issue4630.pdf
|
!issue4630.pdf
|
||||||
!issue4909.pdf
|
!issue4909.pdf
|
||||||
!issue5202.pdf
|
!issue5202.pdf
|
||||||
|
BIN
test/pdfs/issue6413.pdf
Normal file
BIN
test/pdfs/issue6413.pdf
Normal file
Binary file not shown.
@ -1079,6 +1079,13 @@
|
|||||||
"link": true,
|
"link": true,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "issue6413",
|
||||||
|
"file": "pdfs/issue6413.pdf",
|
||||||
|
"md5": "08926ac7a46e27a4abbb31256b3a7b29",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": false,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "issue1685",
|
{ "id": "issue1685",
|
||||||
"file": "pdfs/issue1685.pdf",
|
"file": "pdfs/issue1685.pdf",
|
||||||
"md5": "b22c3741e6bd0e613d3eb3325ad31f7d",
|
"md5": "b22c3741e6bd0e613d3eb3325ad31f7d",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user