]> git.parisson.com Git - pdf.js.git/commitdiff
bug with length of lookup table
authorsbarman <sbarman@L3CWZ5T.(none)>
Tue, 5 Jul 2011 16:44:26 +0000 (11:44 -0500)
committersbarman <sbarman@L3CWZ5T.(none)>
Tue, 5 Jul 2011 16:44:26 +0000 (11:44 -0500)
pdf.js

diff --git a/pdf.js b/pdf.js
index 5644bf0360ba0863546160b951f3c2760a07ec4f..5743876d60610c08af87048602843142ad512483 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -4452,7 +4452,7 @@ var ColorSpace = (function() {
                 break;
             case "Indexed":
                 var base = ColorSpace.parse(cs[1], xref, res);
-                var hiVal = cs[2];
+                var hiVal = cs[2] + 1;
                 var lookup = xref.fetchIfRef(cs[3]);
                 return new IndexedCS(base, hiVal, lookup);
             case "Lab":