Merge pull request #12363 from emilio/better-cancelation
canvas: Properly restore all the remaining items in stateStack in endDrawing
This commit is contained in:
commit
cdac6f4e68
@ -1009,8 +1009,8 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||||||
|
|
||||||
endDrawing: function CanvasGraphics_endDrawing() {
|
endDrawing: function CanvasGraphics_endDrawing() {
|
||||||
// Finishing all opened operations such as SMask group painting.
|
// Finishing all opened operations such as SMask group painting.
|
||||||
if (this.current.activeSMask !== null) {
|
while (this.stateStack.length || this.current.activeSMask !== null) {
|
||||||
this.endSMaskGroup();
|
this.restore();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.ctx.restore();
|
this.ctx.restore();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user