]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 12 Sep 2011 11:53:42 +0000 (11:53 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 12 Sep 2011 11:53:42 +0000 (11:53 +0000)
coders/dcm.c

index cae30af9176a5a59cafeec7acfbacb1fa0892c99..c03710dde0dbac009b89d7fbc01e327408fbe22b 100644 (file)
@@ -3818,8 +3818,6 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
                         pixel_value=(int) (polarity != MagickFalse ? (max_value-
                           ReadDCMLSBShort(stream_info,image)) :
                           ReadDCMLSBShort(stream_info,image));
-                      if (signed_data == 12)
-                        pixel_value=((signed short) pixel_value);
                     }
                   else
                     {
@@ -3842,7 +3840,7 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
                 index=pixel_value;
                 if (window_width == 0)
                   {
-                    if (signed_data == 12)
+                    if (signed_data == 1)
                       index=pixel_value-32767;
                   }
                 else
@@ -3947,7 +3945,7 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
                           pixel_value=(int) (polarity != MagickFalse ?
                             (max_value-ReadDCMLSBShort(stream_info,image)) :
                             ReadDCMLSBShort(stream_info,image));
-                        if (signed_data == 12)
+                        if (signed_data == 1)
                           pixel_value=((signed short) pixel_value);
                       }
                     else
@@ -3971,7 +3969,7 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
                   index=pixel_value;
                   if (window_width == 0)
                     {
-                      if (signed_data == 12)
+                      if (signed_data == 1)
                         index=pixel_value-32767;
                     }
                   else