]> granicus.if.org Git - imagemagick/commitdiff
Removed code that sets the columns to zero when a PNG image is corrupt.
authorDirk Lemstra <dirk@git.imagemagick.org>
Mon, 19 Dec 2016 13:46:45 +0000 (14:46 +0100)
committerDirk Lemstra <dirk@git.imagemagick.org>
Mon, 19 Dec 2016 13:46:45 +0000 (14:46 +0100)
coders/png.c

index 4c6f80ae5b2a5513d1b9680199c59c1aae86d972..bc3ab76e2e2680a1ab837fcc681735f5b63ba27a 100644 (file)
@@ -2179,16 +2179,6 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
         (void) LogMagickEvent(CoderEvent,GetMagickModule(),
           "  exit ReadOnePNGImage() with error.");
 
-      if (image != (Image *) NULL)
-        {
-          const char
-            *option;
-
-          option=GetImageOption(image_info,"png:preserve-corrupt-image");
-          if (IsStringTrue(option) == MagickFalse)
-            image->columns=0;
-        }
-
       return(GetFirstImageInList(image));
     }