Skip to content

Commit

Permalink
fix(colourImages):Somehow the dereference for the byte length was don…
Browse files Browse the repository at this point in the history
…e twice (#232)
  • Loading branch information
wayfarer3130 authored Oct 6, 2022
1 parent 9f0fbde commit d52a1cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/RenderingEngine/StackViewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ class StackViewport extends Viewport implements IStackViewport {
const scalars = this._imageData.getPointData().getScalars();
const scalarData = scalars.getData() as Uint8Array | Float32Array;

if (image.rgba || isRgbaSourceRgbDest(pixelData, scalarData.byteLength)) {
if (image.rgba || isRgbaSourceRgbDest(pixelData, scalarData)) {
if (!image.rgba) {
console.warn('rgba not specified but data looks rgba ish', image);
}
Expand Down

0 comments on commit d52a1cb

Please sign in to comment.