Skip to content

Commit 0db4ad1

Browse files
committed
DM-10369: changes from review
1 parent 2a1defb commit 0db4ad1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/firefly/js/visualize/ImageViewerLayout.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,11 @@ function makeTileDrawers(pv) {
339339

340340
function makeMaskColorProcessor(colorStr) {
341341
return (imageData) => {
342-
const cAry= Color.toRGB(colorStr);
342+
const cAry= Color.getRGBA(colorStr);
343343
const {data}= imageData;
344344
const len= data.length;
345345
for(let i= 0; i<len; i+=4) {
346-
if (data[i] || data[i+1] || data[i+2]) {
346+
if (data[i+3]) {
347347
data[i] = cAry[0];
348348
data[i+1]= cAry[1];
349349
data[i+2]= cAry[2];

0 commit comments

Comments
 (0)