Mercurial > hg > orthanc
diff Core/ImageFormats/ImageAccessor.cpp @ 983:80d4f1618b33 plugins
Sample plugin to replace DCMTK by GDCM when decoding images
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 01 Jul 2014 12:01:58 +0200 |
parents | 87791ebc1f50 |
children | 6e7e5ed91c2d |
line wrap: on
line diff
--- a/Core/ImageFormats/ImageAccessor.cpp Mon Jun 30 17:44:38 2014 +0200 +++ b/Core/ImageFormats/ImageAccessor.cpp Tue Jul 01 12:01:58 2014 +0200 @@ -168,7 +168,7 @@ pitch_ = pitch; buffer_ = const_cast<void*>(buffer); - assert(GetBytesPerPixel(format_) * width_ <= pitch_); + assert(GetBytesPerPixel() * width_ <= pitch_); } @@ -185,7 +185,7 @@ pitch_ = pitch; buffer_ = buffer; - assert(GetBytesPerPixel(format_) * width_ <= pitch_); + assert(GetBytesPerPixel() * width_ <= pitch_); }