]> git.parisson.com Git - pdf.js.git/commitdiff
Fix ColorSpace lookup in ColorSpace.parseToIR
authorJulian Viereck <julian.viereck@gmail.com>
Sun, 9 Oct 2011 11:24:54 +0000 (13:24 +0200)
committerJulian Viereck <julian.viereck@gmail.com>
Sun, 9 Oct 2011 11:24:54 +0000 (13:24 +0200)
pdf.js

diff --git a/pdf.js b/pdf.js
index 91f53de92a20d1cfb351830f0f7bc5b9337f578e..d5a15d091b6ce4311b64e3556f70bbd58c1d76d2 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -6458,7 +6458,7 @@ var ColorSpace = (function colorSpaceColorSpace() {
 
   constructor.parseToIR = function colorspace_parse(cs, xref, res, parseOnly) {
     if (isName(cs)) {
-      var colorSpaces = res.get('ColorSpace');
+      var colorSpaces = xref.fetchIfRef(res.get('ColorSpace'));
       if (isDict(colorSpaces)) {
         var refcs = colorSpaces.get(cs.name);
         if (refcs)