From 9d4485fa0257697051a7efd1fa09c1718ec2277e Mon Sep 17 00:00:00 2001 From: ivmartel Date: Fri, 23 Sep 2022 12:02:15 +0200 Subject: [PATCH] Make if test more specific, relates to #1225 --- src/dicom/dicomParser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dicom/dicomParser.js b/src/dicom/dicomParser.js index d4d1331f48..c085acf7f7 100755 --- a/src/dicom/dicomParser.js +++ b/src/dicom/dicomParser.js @@ -823,9 +823,9 @@ dwv.dicom.DicomParser.prototype.interpretElement = function ( (vr === 'OB' || vr === 'OW' || vr === 'ox')) { // check bits allocated and VR // https://dicom.nema.org/medical/dicom/2022a/output/chtml/part05/sect_A.2.html - if (bitsAllocated > 8 && vr !== 'OW') { + if (bitsAllocated > 8 && vr === 'OB') { dwv.logger.warn( - 'Reading DICOM pixel data with bitsAllocated>8 and vr is not OW.' + 'Reading DICOM pixel data with bitsAllocated>8 and OB VR.' ); } // read