]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick6/issues/46
authorCristy <urban-warrior@imagemagick.org>
Wed, 19 Jun 2019 11:14:14 +0000 (07:14 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 19 Jun 2019 11:14:14 +0000 (07:14 -0400)
MagickCore/cache.c

index 96963ad44c09119685e281aef08f34fdba0618ae..e3400efbe4ea0b67d7d8eea04971094c5205ee97 100644 (file)
@@ -5018,12 +5018,6 @@ static Quantum *SetPixelCacheNexusPixels(
   assert(cache_info->signature == MagickCoreSignature);
   if (cache_info->type == UndefinedCache)
     return((Quantum *) NULL);
-  if ((width == 0) || (height == 0))
-    {
-      (void) ThrowMagickException(exception,GetMagickModule(),CacheError,
-        "NoPixelsDefinedInCache","`%s'",cache_info->filename);
-      return((Quantum *) NULL);
-    }
   (void) memset(&nexus_info->region,0,sizeof(nexus_info->region));
   assert(nexus_info->signature == MagickCoreSignature);
   if (((cache_info->type == MemoryCache) || (cache_info->type == MapCache)) &&