diff --git a/magick/cache.c b/magick/cache.c
index d63b884..b910189 100644
--- a/magick/cache.c
+++ b/magick/cache.c
@@ -4956,8 +4956,7 @@
       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.height == 1UL) || ((nexus_info->region.x == 0) &&
            ((nexus_info->region.width == cache_info->columns) ||
             ((nexus_info->region.width % cache_info->columns) == 0)))))
         {