Added extra check to avoid an exception.

This commit is contained in:
dirk
2015-02-26 06:15:35 +00:00
parent 07b66c37b3
commit d14051c3fc
+3
View File
@@ -2372,6 +2372,9 @@ bool Magick::Image::compare(const Image &reference_)
Image
ref=reference_;
if (columns() != reference_.columns() || rows() != reference_.rows())
return(false);
GetPPException;
modifyImage();
status=static_cast<bool>(IsImagesEqual(image(),ref.constImage(),