]> git.parisson.com Git - pdf.js.git/commitdiff
Fix undefined stepper.
authorBrendan Dahl <brendan.dahl@gmail.com>
Tue, 14 Feb 2012 18:25:53 +0000 (10:25 -0800)
committerBrendan Dahl <brendan.dahl@gmail.com>
Tue, 14 Feb 2012 18:25:53 +0000 (10:25 -0800)
src/canvas.js

index d778fd59746683add1939582dfd159f573f67dbd..67eb83c1d642bee508bf37223bfaaaaaa8048d03 100644 (file)
@@ -285,7 +285,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
       var slowCommands = this.slowCommands;
 
       while (true) {
-        if (stepper !== null && i === stepper.nextBreakPoint) {
+        if (stepper && i === stepper.nextBreakPoint) {
           stepper.breakIt(i, continueCallback);
           return i;
         }