Mercurial > hg > orthanc-stone
diff Framework/Radiography/RadiographyDicomLayer.cpp @ 649:f1bfe3d1759f
Moved RadiographyDicomLayer::SetDicomFrameConverter to cpp file to prevent
using an auto_ptr with an incomplete type (because of Microsoft implementation?)
because that might lead to the dtor not being called.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 14 May 2019 09:46:41 +0200 |
parents | 42dadae61fa9 |
children | 1e26bb5f2a02 |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyDicomLayer.cpp Mon May 13 15:22:08 2019 +0200 +++ b/Framework/Radiography/RadiographyDicomLayer.cpp Tue May 14 09:46:41 2019 +0200 @@ -106,6 +106,12 @@ BroadcastMessage(RadiographyLayer::LayerEditedMessage(*this)); } + + void RadiographyDicomLayer::SetDicomFrameConverter(DicomFrameConverter* converter) + { + converter_.reset(converter); + } + void RadiographyDicomLayer::Render(Orthanc::ImageAccessor& buffer, const AffineTransform2D& viewTransform, ImageInterpolation interpolation) const