Commit 878bd6fb authored by dirk's avatar dirk

Fixed hiding of exception in compare method of Magick++.

parent 4e9f7246
......@@ -824,7 +824,9 @@ bool Magick::Image::compare ( const Image &reference_ )
modifyImage();
Image ref = reference_;
ref.modifyImage();
return static_cast<bool>(IsImagesEqual(image(), ref.image()));
bool status = static_cast<bool>(IsImagesEqual(image(), ref.image()));
throwImageException();
return status;
}
// Composite two images
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment