]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/262
authorCristy <urban-warrior@imagemagick.org>
Mon, 5 Sep 2016 16:50:08 +0000 (12:50 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 5 Sep 2016 16:50:08 +0000 (12:50 -0400)
coders/tiff.c

index df0669c62d4b12806d9474de5034aceb2ed02883..ff57caa94c49591f5b51862635c363ebf8792703 100644 (file)
@@ -3476,8 +3476,6 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info,
           (image_info->interlace == PartitionInterlace))
         (void) TIFFSetField(tiff,TIFFTAG_PLANARCONFIG,PLANARCONFIG_SEPARATE);
     rows_per_strip=(uint32) image->rows;
-    if (TIFFScanlineSize(tiff) != 0)
-      rows_per_strip=TIFFDefaultStripSize(tiff,0);
     option=GetImageOption(image_info,"tiff:rows-per-strip");
     if (option != (const char *) NULL)
       rows_per_strip=(size_t) strtol(option,(char **) NULL,10);