mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Fix a little error with colorspace (#373)
This commit is contained in:
parent
93437352d0
commit
a5d5f144bc
1 changed files with 1 additions and 1 deletions
2
pdf.js
2
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) {
|
||||
if (colorSpaces && colorSpaces.get) {
|
||||
var refcs = colorSpaces.get(cs.name);
|
||||
if (refcs)
|
||||
cs = refcs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue