diff Framework/Messaging/MessagingToolbox.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/Messaging/MessagingToolbox.cpp	Mon Oct 24 14:45:05 2016 +0200
+++ b/Framework/Messaging/MessagingToolbox.cpp	Wed Oct 26 12:14:03 2016 +0200
@@ -413,7 +413,7 @@
 
       // Decode a grayscale JPEG 8bpp image coming from the Web viewer
       std::auto_ptr<Orthanc::ImageAccessor> image
-        (new Orthanc::Image(targetFormat, reader->GetWidth(), reader->GetHeight()));
+        (new Orthanc::Image(targetFormat, reader->GetWidth(), reader->GetHeight(), false));
 
       float scaling = static_cast<float>(stretchHigh - stretchLow) / 255.0f;
       float offset = static_cast<float>(stretchLow) / scaling;