Skip to content
Permalink
Browse files Browse the repository at this point in the history
...
  • Loading branch information
Cristy committed Jul 6, 2016
1 parent 75d4875 commit 2bb6941
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions coders/tiff.c
Expand Up @@ -1297,12 +1297,6 @@ RestoreMSCWarning
image->columns=(size_t) width;
image->rows=(size_t) height;
image->depth=(size_t) bits_per_sample;
status=SetImageExtent(image,image->columns,image->rows);
if (status == MagickFalse)
{
InheritException(exception,&image->exception);
return(DestroyImageList(image));
}
if (image->debug != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),"Image depth: %.20g",
(double) image->depth);
Expand Down Expand Up @@ -1559,6 +1553,12 @@ RestoreMSCWarning
}
goto next_tiff_frame;
}
status=SetImageExtent(image,image->columns,image->rows);
if (status == MagickFalse)
{
InheritException(exception,&image->exception);
return(DestroyImageList(image));
}
method=ReadGenericMethod;
if (TIFFGetField(tiff,TIFFTAG_ROWSPERSTRIP,&rows_per_strip) == 1)
{
Expand Down

0 comments on commit 2bb6941

Please sign in to comment.