]> git.lyx.org Git - features.git/commitdiff
Revert a9c6fb0c.
authorPavel Sanda <sanda@lyx.org>
Thu, 27 Jul 2023 20:39:49 +0000 (22:39 +0200)
committerPavel Sanda <sanda@lyx.org>
Thu, 27 Jul 2023 20:39:49 +0000 (22:39 +0200)
Causes regression, see #12841.

src/CoordCache.h

index f26b6b22dd523791b9c73536f4488356d2649653..f960c24b1bd6e1aa8a945ce1230613f7aa9bbf39 100644 (file)
@@ -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