From f7fc44712287e76b7fe9b22b61966b26ed70f997 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 11 Aug 2019 09:26:59 -0400 Subject: [PATCH] ... --- MagickCore/cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 2842b1c73..bf4687965 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -1750,7 +1750,8 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone, /* Ensure the image matches the pixel cache morphology. */ - image->type=UndefinedType; + if (image->type != UndefinedType) + image->type=UndefinedType; if (ValidatePixelCacheMorphology(image) == MagickFalse) { status=OpenPixelCache(image,IOMode,exception); -- 2.40.0