]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <mikayla-grace@urban-warrior.org>
Sat, 9 Feb 2019 13:28:58 +0000 (08:28 -0500)
committerCristy <mikayla-grace@urban-warrior.org>
Sat, 9 Feb 2019 13:28:58 +0000 (08:28 -0500)
coders/bmp.c

index c5696546f57fff9c6a63bc0665733809e7a99bb1..b335388ccd3ada2ce5efc2ba42fcac5e1fdcda45 100644 (file)
@@ -621,8 +621,8 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception)
     if (image->debug != MagickFalse)
       (void) LogMagickEvent(CoderEvent,GetMagickModule(),"  BMP size: %u",
         bmp_info.size);
-    profile_data = 0;
-    profile_size = 0;
+    profile_data=0;
+    profile_size=0;
     if (bmp_info.size == 12)
       {
         /*
@@ -1010,8 +1010,8 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception)
           If we find a non zero value we asume the program that wrote the file
           wants to use the alpha channel.
         */
-        if ((image->alpha_trait == UndefinedPixelTrait) && (bmp_info.size == 40) &&
-            (bmp_info.bits_per_pixel == 32))
+        if ((image->alpha_trait == UndefinedPixelTrait) &&
+            (bmp_info.size == 40) && (bmp_info.bits_per_pixel == 32))
           {
             bytes_per_line=4*(image->columns);
             for (y=(ssize_t) image->rows-1; y >= 0; y--)
@@ -1444,9 +1444,9 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception)
       }
     /*
       Read embeded ICC profile
-     */
-    if ((bmp_info.colorspace == 0x4D424544L) &&  /* PROFILE_EMBEDDED */
-        (profile_data > 0) && (profile_size > 0))
+    */
+    if ((bmp_info.colorspace == 0x4D424544L) && (profile_data > 0) &&
+        (profile_size > 0))
       {
         StringInfo
           *profile;