]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 15 May 2013 12:20:19 +0000 (12:20 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 15 May 2013 12:20:19 +0000 (12:20 +0000)
MagickCore/exception.c
MagickCore/morphology.c

index 34a01f72c2e8d13bd2f90d4213763e77180433f3..d9fc39397aa3dc1f55cd99fbdc490311459a0ca4 100644 (file)
@@ -939,9 +939,12 @@ MagickExport MagickBooleanType ThrowException(ExceptionInfo *exception,
     p->description=ConstantString(description);
   p->signature=MagickSignature;
   (void) AppendValueToLinkedList((LinkedListInfo *) exception->exceptions,p);
-  exception->severity=p->severity;
-  exception->reason=p->reason;
-  exception->description=p->description;
+  if (p->severity >= exception->severity)
+    {
+      exception->severity=p->severity;
+      exception->reason=p->reason;
+      exception->description=p->description;
+    }
   UnlockSemaphoreInfo(exception->semaphore);
   return(MagickTrue);
 }
index bc7ac7e936ce2d14f29ac6fdbfc0196231f3a4e8..798cf47838202a381ad912a6ebef594cbf90dcc2 100644 (file)
@@ -3904,7 +3904,6 @@ MagickPrivate Image *MorphologyApply(const Image *image,
           }
           if ( changed < 0 )
             goto error_cleanup;
-          #pragma omp flush(changed)
           kernel_changed += changed;
           method_changed += changed;