Skip to content

Commit

Permalink
Merge pull request mozilla#8666 from apoorv-mishra/fix-colorspace
Browse files Browse the repository at this point in the history
Fix TypeError that occurs in colorspace.js on accidentally passing an 'Array' instead of 'TypedArray'
  • Loading branch information
timvandermeij authored Jul 25, 2017
2 parents 477a737 + 60c2850 commit 7eb2e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/colorspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7eb2e21

Please sign in to comment.