From: Cristy Date: Wed, 30 Mar 2016 13:10:58 +0000 (-0400) Subject: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29374 X-Git-Tag: 7.0.1-0~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6831e2f47f00e8b78275319e4aec01d120a3876f;p=imagemagick https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29374 --- diff --git a/MagickCore/fourier.c b/MagickCore/fourier.c index c12f54b61..5265f07e8 100644 --- a/MagickCore/fourier.c +++ b/MagickCore/fourier.c @@ -460,14 +460,14 @@ static MagickBooleanType ForwardQuadrantSwap(const size_t width, if (status == MagickFalse) return(MagickFalse); for (y=0L; y < (ssize_t) height; y++) - for (x=0L; x < (ssize_t) (width/2L-1L); x++) + for (x=0L; x < (ssize_t) (width/2L); x++) forward_pixels[y*width+x+width/2L]=source_pixels[y*center+x]; for (y=1; y < (ssize_t) height; y++) - for (x=0L; x < (ssize_t) (width/2L-1L); x++) + for (x=0L; x < (ssize_t) (width/2L); x++) forward_pixels[(height-y)*width+width/2L-x-1L]= source_pixels[y*center+x+1L]; for (x=0L; x < (ssize_t) (width/2L); x++) - forward_pixels[-x+width/2L-1L]=forward_pixels[x+width/2L+1L]; + forward_pixels[width/2L-x-1L]=source_pixels[x+1L]; return(MagickTrue); }