Merge pull request #4912 from yurydelendik/issue4911

Fixes optional backdrop regression
This commit is contained in:
Jonas Jenwald 2014-06-10 23:15:36 +02:00
commit 36c0c64272

View File

@ -639,7 +639,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
function genericComposeSMask(maskCtx, layerCtx, width, height,
subtype, backdrop) {
var hasBackdrop = backdrop !== undefined;
var hasBackdrop = !!backdrop;
var r0 = hasBackdrop ? backdrop[0] : 0;
var g0 = hasBackdrop ? backdrop[1] : 0;
var b0 = hasBackdrop ? backdrop[2] : 0;