From 712c8bc4bcb5fa0694f5c169630f3b4b122862c5 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 22 Jul 2018 20:29:33 -0400 Subject: [PATCH] ... --- MagickCore/cache.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/MagickCore/cache.c b/MagickCore/cache.c index cef4a6596..e847f617b 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -5046,11 +5046,12 @@ static Quantum *SetPixelCacheNexusPixels(const CacheInfo *cache_info, x=nexus_info->region.x+(ssize_t) nexus_info->region.width-1; y=nexus_info->region.y+(ssize_t) nexus_info->region.height-1; - if (((nexus_info->region.x >= 0) && (x < (ssize_t) cache_info->columns) && - (nexus_info->region.y >= 0) && (y < (ssize_t) cache_info->rows)) && - ((nexus_info->region.height == 1UL) || ((nexus_info->region.x == 0) && - ((nexus_info->region.width == cache_info->columns) || - ((nexus_info->region.width % cache_info->columns) == 0))))) + if (((nexus_info->region.x >= 0) && (nexus_info->region.y >= 0) && + (y < (ssize_t) cache_info->rows)) && + (((nexus_info->region.x == 0) && + (nexus_info->region.width == cache_info->columns)) || + ((nexus_info->region.height == 1) && + (x < (ssize_t) cache_info->columns)))) { MagickOffsetType offset; -- 2.40.0