From: cristy Date: Sat, 4 Jul 2015 13:10:56 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~813 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1deff92b197cfc3a4354e651548e83865ac728b1;p=imagemagick --- diff --git a/Magick++/lib/Image.cpp b/Magick++/lib/Image.cpp index a7cd6c85c..a1f269e05 100644 --- a/Magick++/lib/Image.cpp +++ b/Magick++/lib/Image.cpp @@ -3472,9 +3472,11 @@ void Magick::Image::morphology(const MorphologyMethod method_, option=CommandOptionToMnemonic(MagickKernelOptions,kernel_); if (option == (const char *)NULL) - throwExceptionExplicit(MagickCore::OptionError, - "Unable to determine kernel type."); - + { + throwExceptionExplicit(MagickCore::OptionError, + "Unable to determine kernel type."); + return; + } kernel=std::string(option); if (!arguments_.empty()) kernel+=":"+arguments_;