1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Removed Extraneous Matrix Check in CalRGB Conversion

This commit is contained in:
Brian 2018-08-02 10:16:42 -07:00
parent 716acf63d4
commit 2a665ebad4
4 changed files with 8 additions and 12 deletions

View file

@ -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) {