]> granicus.if.org Git - imagemagick/commitdiff
minor compiler fix
authoranthony <anthony@git.imagemagick.org>
Mon, 24 May 2010 13:05:02 +0000 (13:05 +0000)
committeranthony <anthony@git.imagemagick.org>
Mon, 24 May 2010 13:05:02 +0000 (13:05 +0000)
magick/morphology.c

index 830e42ca03e8b17d6c6ea72194287ebe3d06ce8d..e7427a5f20583f634e84b1bc605dc082ae61aea0 100644 (file)
@@ -2677,6 +2677,7 @@ MagickExport Image *MorphologyApply(const Image *image, const ChannelType
 
         /* Select primative morphology for this stage of compound method */
         this_kernel = norm_kernel; /* default use unreflected kernel */
+        primative = method;        /* Assume method is a primative */
         switch( method ) {
           case ErodeMorphology:      /* just erode */
           case EdgeInMorphology:     /* erode and image difference */
@@ -2749,7 +2750,6 @@ MagickExport Image *MorphologyApply(const Image *image, const ChannelType
             primative = ConvolveMorphology;
             break;
           default:
-            primative = method;       /* method is a primative */
             break;
         }