From: Vivien Nicolas <21@vingtetun.org> Date: Thu, 25 Aug 2011 02:27:49 +0000 (+0200) Subject: Use IsDict instead of checking the property for colorSpaces X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c6e4dadf940d0919e72607402dab56bad4a7e3fd;p=pdf.js.git Use IsDict instead of checking the property for colorSpaces --- diff --git a/pdf.js b/pdf.js index 404ac75..d99ce5f 100644 --- a/pdf.js +++ b/pdf.js @@ -5230,7 +5230,7 @@ var ColorSpace = (function() { constructor.parse = function colorspace_parse(cs, xref, res) { if (IsName(cs)) { var colorSpaces = res.get('ColorSpace'); - if (colorSpaces && colorSpaces.get) { + if (IsDict(colorSpaces)) { var refcs = colorSpaces.get(cs.name); if (refcs) cs = refcs;