diff Framework/Volumes/ImageBuffer3D.cpp @ 11:4b7e0244881f

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 26 Oct 2016 12:14:03 +0200
parents 351ab0da0150
children ff1e935768e7
line wrap: on
line diff
--- a/Framework/Volumes/ImageBuffer3D.cpp	Mon Oct 24 14:45:05 2016 +0200
+++ b/Framework/Volumes/ImageBuffer3D.cpp	Wed Oct 26 12:14:03 2016 +0200
@@ -94,7 +94,7 @@
       throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
     }
 
-    std::auto_ptr<Orthanc::Image> result(new Orthanc::Image(format_, height_, depth_));
+    std::auto_ptr<Orthanc::Image> result(new Orthanc::Image(format_, height_, depth_, false));
 
     unsigned int bytesPerPixel = Orthanc::GetBytesPerPixel(format_);
 
@@ -121,7 +121,7 @@
                                unsigned int width,
                                unsigned int height,
                                unsigned int depth) :
-    image_(format, width, height * depth),
+    image_(format, width, height * depth, false),
     format_(format),
     width_(width),
     height_(height),