diff --git a/src/core/colorspace.js b/src/core/colorspace.js index 7f784ce2c..cf2dc3d2f 100644 --- a/src/core/colorspace.js +++ b/src/core/colorspace.js @@ -960,18 +960,6 @@ var CalRGBCS = (function CalRGBCSClosure() { '] for ' + this.name + ', falling back to default'); this.GR = this.GG = this.GB = 1; } - - if (this.MXA < 0 || this.MYA < 0 || this.MZA < 0 || - this.MXB < 0 || this.MYB < 0 || this.MZB < 0 || - this.MXC < 0 || this.MYC < 0 || this.MZC < 0) { - info('Invalid Matrix for ' + this.name + ' [' + - this.MXA + ', ' + this.MYA + ', ' + this.MZA + - this.MXB + ', ' + this.MYB + ', ' + this.MZB + - this.MXC + ', ' + this.MYC + ', ' + this.MZC + - '], falling back to default'); - this.MXA = this.MYB = this.MZC = 1; - this.MXB = this.MYA = this.MZA = this.MXC = this.MYC = this.MZB = 0; - } } function matrixProduct(a, b, result) { diff --git a/test/pdfs/.gitignore b/test/pdfs/.gitignore index cd4cc8b70..0d5af9146 100644 --- a/test/pdfs/.gitignore +++ b/test/pdfs/.gitignore @@ -71,6 +71,7 @@ !issue9418.pdf !issue9458.pdf !issue9915_reduced.pdf +!issue9940.pdf !bad-PageLabels.pdf !decodeACSuccessive.pdf !filled-background.pdf diff --git a/test/pdfs/issue9940.pdf b/test/pdfs/issue9940.pdf new file mode 100644 index 000000000..4d43a2528 Binary files /dev/null and b/test/pdfs/issue9940.pdf differ diff --git a/test/test_manifest.json b/test/test_manifest.json index feb2f04c2..e619d3308 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -3978,5 +3978,12 @@ "md5": "ce718efe601cd7491dd00651b4790329", "rounds": 1, "type": "eq" + }, + { "id": "issue9940", + "file": "pdfs/issue9940.pdf", + "md5": "6ffef210c4b6cfe423e20430d8af168a", + "rounds": 1, + "link": false, + "type": "eq" } ]