From bad067a695a24c357a178ade1617ac2d6ea22ee3 Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 15 Feb 2010 17:20:55 +0000 Subject: [PATCH] --- magick/cache.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/magick/cache.c b/magick/cache.c index 8bc3380e8..1ffe9190c 100644 --- a/magick/cache.c +++ b/magick/cache.c @@ -5000,15 +5000,14 @@ static PixelPacket *SetPixelCacheNexusPixels(const Image *image, if ((cache_info->type != DiskCache) && (image->clip_mask == (Image *) NULL) && (image->mask == (Image *) NULL)) { - OffsetInfo - offset_info; - - offset_info.x=nexus_info->region.x+nexus_info->region.width-1; - offset_info.y=nexus_info->region.y+nexus_info->region.height-1; - if (((nexus_info->region.x >= 0) && - (offset_info.x < (long) cache_info->columns) && - (nexus_info->region.y >= 0) && - (offset_info.y < (long) cache_info->rows)) && + long + x, + y; + + x=nexus_info->region.x+nexus_info->region.width-1; + y=nexus_info->region.y+nexus_info->region.height-1; + if (((nexus_info->region.x >= 0) && (x < (long) cache_info->columns) && + (nexus_info->region.y >= 0) && (y < (long) cache_info->rows)) && ((nexus_info->region.height == 1UL) || ((nexus_info->region.x == 0) && ((nexus_info->region.width == cache_info->columns) || -- 2.40.0