From: Kalervo Kujala Date: Thu, 8 Sep 2011 21:52:11 +0000 (+0300) Subject: Fix lastRow bug. X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=63d3f0626510fe56f11695c09972370a806eba61;p=pdf.js.git Fix lastRow bug. It was introduced by 99ffc9991e00210d9f4c2dc1a97fee5021553264. --- diff --git a/pdf.js b/pdf.js index 797416c..ff87078 100644 --- a/pdf.js +++ b/pdf.js @@ -825,7 +825,7 @@ var PredictorStream = (function() { currentRow[i] = rawBytes[i]; for (; i < rowBytes; ++i) { var up = prevRow[i]; - var upLeft = lastRow[i - pixBytes]; + var upLeft = prevRow[i - pixBytes]; var left = currentRow[i - pixBytes]; var p = left + up - upLeft;