]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Tue, 13 Mar 2018 01:15:59 +0000 (21:15 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 13 Mar 2018 01:15:59 +0000 (21:15 -0400)
MagickCore/property.c

index 0ad839933dc0df26a9500803804d9eb609af930b..34e37e050cc17de63e04d8370a3b12ab94fe0c6e 100644 (file)
@@ -3667,9 +3667,10 @@ RestoreMSCWarning
                 OptionWarning,"NoImageForProperty","\"%%[%s]\"",pattern);
               continue; /* else no image to retrieve artifact */
             }
+          if ((image->columns == 0) || (image->rows == 0))
+            break;
           GetPixelInfo(image,&pixel);
           fx_info=AcquireFxInfo(image,pattern+4,exception);
-          value=0.0;
           status=FxEvaluateChannelExpression(fx_info,RedPixelChannel,0,0,
             &value,exception);
           pixel.red=(double) QuantumRange*value;