From: Pavel Sanda Date: Thu, 27 Jul 2023 20:39:49 +0000 (+0200) Subject: Revert a9c6fb0c. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9c7030b36b37ff31955386d53493d501c38a8a35;p=features.git Revert a9c6fb0c. Causes regression, see #12841. --- 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