Finishing SMask at the end of operators list.

This commit is contained in:
Yury Delendik 2016-04-09 18:50:11 -05:00
parent 1485c1d1da
commit 63f62a0e53

View File

@ -870,6 +870,11 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
}, },
endDrawing: function CanvasGraphics_endDrawing() { endDrawing: function CanvasGraphics_endDrawing() {
// Finishing all opened operations such as SMask group painting.
if (this.current.activeSMask !== null) {
this.endSMaskGroup();
}
this.ctx.restore(); this.ctx.restore();
if (this.transparentCanvas) { if (this.transparentCanvas) {