]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 4 Sep 2011 23:02:10 +0000 (23:02 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 4 Sep 2011 23:02:10 +0000 (23:02 +0000)
MagickCore/cache.c
MagickCore/montage.c

index d24a07a57dd1d7f250734ac50e4e4d9971a8119c..fc6f2adbdf149cd2213db892f8dffa4c8f2b7a70 100644 (file)
@@ -4381,9 +4381,9 @@ MagickPrivate Quantum *QueueAuthenticNexus(Image *image,const ssize_t x,
   assert(image->signature == MagickSignature);
   assert(image->cache != (Cache) NULL);
   cache_info=(CacheInfo *) GetImagePixelCache(image,MagickTrue,exception);
-  assert(cache_info->signature == MagickSignature);
   if (cache_info == (Cache) NULL)
     return((Quantum *) NULL);
+  assert(cache_info->signature == MagickSignature);
   if ((cache_info->columns == 0) && (cache_info->rows == 0))
     {
       (void) ThrowMagickException(exception,GetMagickModule(),CacheError,
index 9ab20151a63bb60c86d26d0024fe0f8547dd05ac..8a112fe3836d1de4c15ce630fc6262a47b40cf49 100644 (file)
@@ -636,8 +636,8 @@ MagickExport Image *MontageImageList(const ImageInfo *image_info,
     */
     (void) CopyMagickString(montage->filename,montage_info->filename,
       MaxTextExtent);
-    montage->columns=bounds.width;
-    montage->rows=bounds.height;
+    montage->columns=MagickMax(bounds.width,1);
+    montage->rows=MagickMax(bounds.height,1);
     (void) SetImageBackgroundColor(montage);
     /*
       Set montage geometry.