]> granicus.if.org Git - imagemagick/commitdiff
Fixed throwExceptionExplicit.
authordirk <dirk@git.imagemagick.org>
Tue, 6 May 2014 05:19:15 +0000 (05:19 +0000)
committerdirk <dirk@git.imagemagick.org>
Tue, 6 May 2014 05:19:15 +0000 (05:19 +0000)
Magick++/lib/Exception.cpp

index a6cd8c65048479304698f54d5d5ebe21a24221ec..4927a9f5f8216a085df055e5c5c136d93b24f53e 100644 (file)
@@ -806,15 +806,12 @@ Magick::Exception* Magick::createException(const MagickCore::ExceptionInfo *exce
 MagickPPExport void Magick::throwExceptionExplicit(
   const ExceptionType severity_,const char* reason_,const char* description_)
 {
-  ExceptionInfo
-    exception;
-
   // Just return if there is no reported error
   if (severity_ == UndefinedException)
     return;
 
   GetPPException;
-  ThrowException(&exception,severity_,reason_, description_);
+  ThrowException(&exceptionInfo,severity_,reason_, description_);
   ThrowPPException;
 }