diff --git a/MagickWand/mogrify.c b/MagickWand/mogrify.c
index 4994e54..ef122d9 100644
--- a/MagickWand/mogrify.c
+++ b/MagickWand/mogrify.c
@@ -903,7 +903,6 @@
*/
(void) SyncImageSettings(mogrify_info,*image);
(void) BlackThresholdImage(*image,argv[i+1],exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("blue-shift",option+1) == 0)
@@ -986,7 +985,6 @@
contrast=geometry_info.sigma;
(void) BrightnessContrastImage(*image,brightness,contrast,
exception);
- InheritException(exception,&(*image)->exception);
break;
}
break;
@@ -1007,7 +1005,6 @@
break;
(void) ColorDecisionListImage(*image,color_correction_collection,
exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("channel",option+1) == 0)
@@ -1121,7 +1118,6 @@
mask_view=DestroyCacheView(mask_view);
mask_image->matte=MagickTrue;
(void) SetImageClipMask(*image,mask_image,exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("clip-path",option+1) == 0)
@@ -1225,7 +1221,6 @@
white_point;
(void) ContrastStretchImage(*image,black_point,white_point,
exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("convolve",option+1) == 0)
@@ -1913,7 +1908,6 @@
else
(void) LevelImage(*image,black_point,white_point,gamma,
exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("level-colors",option+1) == 0)
@@ -1979,7 +1973,6 @@
white_point=(MagickRealType) (*image)->columns*(*image)->rows-
black_point;
(void) LinearStretchImage(*image,black_point,white_point,exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("linewidth",option+1) == 0)
@@ -2505,7 +2498,6 @@
break;
}
(void) ResetImagePage(*image,argv[i+1]);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("resample",option+1) == 0)
@@ -2939,7 +2931,6 @@
else
threshold=SiPrefixToDouble(argv[i+1],QuantumRange);
(void) BilevelImage(*image,threshold,exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("thumbnail",option+1) == 0)
@@ -2994,7 +2985,7 @@
exception);
(void) TransparentPaintImage(*image,&target,(Quantum)
TransparentAlpha,*option == '-' ? MagickFalse : MagickTrue,
- &(*image)->exception);
+ exception);
break;
}
if (LocaleCompare("transpose",option+1) == 0)
@@ -3173,7 +3164,6 @@
*/
(void) SyncImageSettings(mogrify_info,*image);
(void) WhiteThresholdImage(*image,argv[i+1],exception);
- InheritException(exception,&(*image)->exception);
break;
}
break;
@@ -3207,8 +3197,7 @@
quantize_info=DestroyQuantizeInfo(quantize_info);
draw_info=DestroyDrawInfo(draw_info);
mogrify_info=DestroyImageInfo(mogrify_info);
- status=(MagickStatusType) ((*image)->exception.severity ==
- UndefinedException ? 1 : 0);
+ status=(MagickStatusType) (exception->severity == UndefinedException ? 1 : 0);
return(status == 0 ? MagickFalse : MagickTrue);
}
@@ -7472,7 +7461,6 @@
if (mask_image != (Image *) NULL)
mask_image=image->mask=DestroyImage(image->mask);
composite_image=DestroyImage(composite_image);
- InheritException(exception,&image->exception);
*images=DestroyImageList(*images);
*images=image;
break;
@@ -7886,7 +7874,6 @@
}
if (layers == (Image *) NULL)
break;
- InheritException(exception,&layers->exception);
*images=DestroyImageList(*images);
*images=layers;
break;
@@ -8071,7 +8058,6 @@
if (LocaleCompare("reverse",option+1) == 0)
{
ReverseImageList(images);
- InheritException(exception,&(*images)->exception);
break;
}
break;