[Pkg-javascript-commits] [pdf.js] 49/207: Fixes optional backdrop regression

David Prévot taffit at moszumanska.debian.org
Mon Jul 28 15:36:29 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 1ac8ca66f752ff0b8b249936405945eba19456ae
Author: Yury Delendik <ydelendik at mozilla.com>
Date:   Tue Jun 10 15:47:25 2014 -0500

    Fixes optional backdrop regression
---
 src/display/canvas.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/display/canvas.js b/src/display/canvas.js
index a396011..5bd4fc9 100644
--- a/src/display/canvas.js
+++ b/src/display/canvas.js
@@ -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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list