# HG changeset patch # User Sebastien Jodogne # Date 1520957031 -3600 # Node ID 6dafcdec4b87e6afc7ddeb29e090d62ff384b9d5 # Parent 83200c4d07ca76b2ee3d0c39a1637286acaffb9c fix diff -r 83200c4d07ca -r 6dafcdec4b87 Framework/Toolbox/MessagingToolbox.cpp --- a/Framework/Toolbox/MessagingToolbox.cpp Fri Mar 09 12:32:01 2018 +0100 +++ b/Framework/Toolbox/MessagingToolbox.cpp Tue Mar 13 17:03:51 2018 +0100 @@ -386,7 +386,7 @@ float offset = static_cast(stretchLow) / scaling; Orthanc::ImageProcessing::Convert(*image, *reader); - Orthanc::ImageProcessing::ShiftScale(*image, offset, scaling); + Orthanc::ImageProcessing::ShiftScale(*image, offset, scaling, true); #if 0 /*info.removeMember("PixelData"); diff -r 83200c4d07ca -r 6dafcdec4b87 Framework/Toolbox/OrthancSlicesLoader.cpp --- a/Framework/Toolbox/OrthancSlicesLoader.cpp Fri Mar 09 12:32:01 2018 +0100 +++ b/Framework/Toolbox/OrthancSlicesLoader.cpp Tue Mar 13 17:03:51 2018 +0100 @@ -617,7 +617,7 @@ Orthanc::ImageProcessing::Convert(*image, *reader); reader.reset(NULL); - Orthanc::ImageProcessing::ShiftScale(*image, offset, scaling); + Orthanc::ImageProcessing::ShiftScale(*image, offset, scaling, true); NotifySliceImageSuccess(operation, image); }