diff Plugins/Samples/GdcmDecoding/Plugin.cpp @ 985:0bfdfc0c6b9b plugins

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 01 Jul 2014 15:22:14 +0200
parents 80d4f1618b33
children 501880d76474
line wrap: on
line diff
--- a/Plugins/Samples/GdcmDecoding/Plugin.cpp	Tue Jul 01 14:30:42 2014 +0200
+++ b/Plugins/Samples/GdcmDecoding/Plugin.cpp	Tue Jul 01 15:22:14 2014 +0200
@@ -71,13 +71,15 @@
            image.GetPixelFormat().GetScalarType() == gdcm::PixelFormat::UINT8)
   {
     format = Orthanc::PixelFormat_RGB24;
+    return true;
   }
   else if (image.GetPixelFormat().GetSamplesPerPixel() == 4 &&
            image.GetPixelFormat().GetScalarType() == gdcm::PixelFormat::UINT8)
   {
     format = Orthanc::PixelFormat_RGBA32;
+    return true;
   }
-
+  
   return false;
 }