]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 18 Dec 2012 02:04:00 +0000 (02:04 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 18 Dec 2012 02:04:00 +0000 (02:04 +0000)
MagickCore/effect.c

index 5cd53e849a3612a28eb5a6ee9a0ff44c7417bb22..554e0d5dcba82ff394ca851498b7a5f19725cfa3 100644 (file)
@@ -3622,12 +3622,10 @@ MagickExport Image *SpreadImage(const Image *image,const double radius,
   progress=0;
   width=GetOptimalKernelWidth1D(radius,0.5);
   random_info=AcquireRandomInfoThreadSet();
-#if defined(MAGICKCORE_OPENMP_SUPPORT)
-  key=GetRandomSecretKey(random_info[0]);
-#endif
   image_view=AcquireVirtualCacheView(image,exception);
   spread_view=AcquireAuthenticCacheView(spread_image,exception);
 #if defined(MAGICKCORE_OPENMP_SUPPORT)
+  key=GetRandomSecretKey(random_info[0]);
   #pragma omp parallel for schedule(static,4) shared(progress,status) \
     dynamic_number_threads(image,spread_image,image->rows,key == ~0UL)
 #endif