From: cristy Date: Fri, 5 Aug 2011 19:29:22 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~7219 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=874276bc8cb7bc180642c736749e094904eb7da6;p=imagemagick --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index bcf3aea6a..366c2a3b9 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -1148,6 +1148,7 @@ MagickExport MagickBooleanType DrawAffineImage(Image *image, /* Affine transform image. */ + exception=(&image->exception); if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse) return(MagickFalse); status=MagickTrue; @@ -1157,7 +1158,6 @@ MagickExport MagickBooleanType DrawAffineImage(Image *image, edge.y2=MagickMin(max.y,(double) image->rows-1.0); inverse_affine=InverseAffineMatrix(affine); GetPixelInfo(image,&zero); - exception=(&image->exception); image_view=AcquireCacheView(image); source_view=AcquireCacheView(source); #if defined(MAGICKCORE_OPENMP_SUPPORT) diff --git a/MagickWand/wand-view.c b/MagickWand/wand-view.c index 272904145..83b024e30 100644 --- a/MagickWand/wand-view.c +++ b/MagickWand/wand-view.c @@ -285,11 +285,11 @@ WandExport MagickBooleanType DuplexTransferWandViewIterator(WandView *source, return(MagickFalse); source_image=source->wand->images; destination_image=destination->wand->images; + exception=destination->exception; if (SetImageStorageClass(destination_image,DirectClass,exception) == MagickFalse) return(MagickFalse); status=MagickTrue; progress=0; - exception=destination->exception; #if defined(MAGICKCORE_OPENMP_SUPPORT) #pragma omp parallel for schedule(static,1) shared(progress,status) num_threads(source->number_threads) #endif @@ -924,11 +924,11 @@ WandExport MagickBooleanType SetWandViewIterator(WandView *destination, if (set == (SetWandViewMethod) NULL) return(MagickFalse); destination_image=destination->wand->images; + exception=destination->exception; if (SetImageStorageClass(destination_image,DirectClass,exception) == MagickFalse) return(MagickFalse); status=MagickTrue; progress=0; - exception=destination->exception; #if defined(MAGICKCORE_OPENMP_SUPPORT) #pragma omp parallel for schedule(static,1) shared(progress,status) num_threads(destination->number_threads) #endif @@ -1097,11 +1097,11 @@ WandExport MagickBooleanType TransferWandViewIterator(WandView *source, return(MagickFalse); source_image=source->wand->images; destination_image=destination->wand->images; + exception=destination->exception; if (SetImageStorageClass(destination_image,DirectClass,exception) == MagickFalse) return(MagickFalse); status=MagickTrue; progress=0; - exception=destination->exception; #if defined(MAGICKCORE_OPENMP_SUPPORT) #pragma omp parallel for schedule(static,1) shared(progress,status) num_threads(source->number_threads) #endif @@ -1249,11 +1249,11 @@ WandExport MagickBooleanType UpdateWandViewIterator(WandView *source, if (update == (UpdateWandViewMethod) NULL) return(MagickFalse); source_image=source->wand->images; + exception=source->exception; if (SetImageStorageClass(source_image,DirectClass,exception) == MagickFalse) return(MagickFalse); status=MagickTrue; progress=0; - exception=source->exception; #if defined(MAGICKCORE_OPENMP_SUPPORT) #pragma omp parallel for schedule(static,1) shared(progress,status) num_threads(source->number_threads) #endif