Fixed return value.
authordirk <dirk@git.imagemagick.org>
Sun, 9 Oct 2016 15:33:27 +0000 (17:33 +0200)
committerdirk <dirk@git.imagemagick.org>
Sun, 9 Oct 2016 15:33:27 +0000 (17:33 +0200)
MagickWand/pixel-wand.c

index 5d2b390f472623a804c06890ce3f1edb621dd68c..eb027db8503355d86ee75077840363565618b038 100644 (file)
@@ -1100,7 +1100,7 @@ WandExport Quantum PixelGetIndex(const PixelWand *wand)
   assert(wand->signature == MagickWandSignature);
   if (wand->debug != MagickFalse)
     (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
-  return((Quantum) wand->pixel.black);
+  return((Quantum) wand->pixel.index);
 }
 \f
 /*