]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 21 Dec 2013 15:04:40 +0000 (15:04 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 21 Dec 2013 15:04:40 +0000 (15:04 +0000)
MagickWand/pixel-iterator.c

index 7945a2b78a54f1e944feb7c65f67318f055ed206..c924364792dd72e0d96d95d937792eaa61721e53 100644 (file)
@@ -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)