mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #8666 from apoorv-mishra/fix-colorspace
Fix TypeError that occurs in colorspace.js on accidentally passing an 'Array' instead of 'TypedArray'
This commit is contained in:
commit
44a5cec25e
1 changed files with 1 additions and 1 deletions
|
@ -538,7 +538,7 @@ var IndexedCS = (function IndexedCSClosure() {
|
|||
dest, destOffset) {
|
||||
var numComps = this.base.numComps;
|
||||
var start = src[srcOffset] * numComps;
|
||||
this.base.getRgbItem(this.lookup, start, dest, destOffset);
|
||||
this.base.getRgbBuffer(this.lookup, start, 1, dest, destOffset, 8, 0);
|
||||
},
|
||||
getRgbBuffer: function IndexedCS_getRgbBuffer(src, srcOffset, count,
|
||||
dest, destOffset, bits,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue