mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-31 11:18:42 +02:00
Added extra check to avoid an exception.
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user