Mercurial > hg > orthanc-stone
diff Framework/Radiography/RadiographyMaskLayer.cpp @ 1259:69177b10e2b9
various fixes for RadiographyScene: support text layers outside the dicom layer, fix background in this case + extract dicom from rendered scene
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Tue, 21 Jan 2020 16:52:37 +0100 |
parents | ab958fd99b07 |
children | 1c7ae79c426d |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyMaskLayer.cpp Tue Jan 14 15:22:10 2020 +0100 +++ b/Framework/Radiography/RadiographyMaskLayer.cpp Tue Jan 21 16:52:37 2020 +0100 @@ -82,7 +82,7 @@ float windowWidth, bool applyWindowing) const { - if (dicomLayer_.GetWidth() == 0) // nothing to do if the DICOM layer is not displayed (or not loaded) + if (dicomLayer_.GetWidth() == 0 || dicomLayer_.GetSourceImage() == NULL) // nothing to do if the DICOM layer is not displayed (or not loaded) return; if (invalidated_)