summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coders/tiff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/coders/tiff.c b/coders/tiff.c
index 11387aa3a..adc34c473 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -4307,6 +4307,8 @@ RestoreMSCWarning
if (image->colorspace == LabColorspace)
DecodeLabImage(image,exception);
DestroyTIFFInfo(&tiff_info);
+ if (exception->severity > ErrorException)
+ break;
DisableMSCWarning(4127)
if (0 && (image_info->verbose != MagickFalse))
RestoreMSCWarning
@@ -4320,6 +4322,6 @@ RestoreMSCWarning
break;
} while (adjoin != MagickFalse);
TIFFClose(tiff);
- return(MagickTrue);
+ return(exception->severity > ErrorException ? MagickFalse : MagickTrue);
}
#endif