From 9c7030b36b37ff31955386d53493d501c38a8a35 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Thu, 27 Jul 2023 22:39:49 +0200 Subject: [PATCH] Revert a9c6fb0c. Causes regression, see #12841. --- src/CoordCache.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/CoordCache.h b/src/CoordCache.h index f26b6b22dd..f960c24b1b 100644 --- a/src/CoordCache.h +++ b/src/CoordCache.h @@ -31,8 +31,10 @@ struct Geometry { bool covers(int x, int y) const { - return x >= pos.x_ && x < pos.x_ + dim.wid - && y >= pos.y_ - dim.asc && y <= pos.y_ + dim.des; + return x >= pos.x_ + && x <= pos.x_ + dim.wid + && y >= pos.y_ - dim.asc + && y <= pos.y_ + dim.des; } int squareDistance(int x, int y) const -- 2.39.5