From: cristy Date: Sat, 21 Dec 2013 15:04:40 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3040 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36ac3435a50239bc3564618ff2602ec2336bf3cb;p=imagemagick --- diff --git a/MagickWand/pixel-iterator.c b/MagickWand/pixel-iterator.c index 7945a2b78..c92436479 100644 --- a/MagickWand/pixel-iterator.c +++ b/MagickWand/pixel-iterator.c @@ -426,7 +426,7 @@ WandExport PixelIterator *NewPixelRegionIterator(MagickWand *wand, quantum=GetMagickQuantumDepth(&depth); if (depth != MAGICKCORE_QUANTUM_DEPTH) ThrowWandFatalException(WandError,"QuantumDepthMismatch",quantum); - if ((width == 0) || (width == 0)) + if ((width == 0) || (height == 0)) ThrowWandFatalException(WandError,"ZeroRegionSize",quantum); image=GetImageFromMagickWand(wand); if (image == (Image *) NULL)