]> git.lyx.org Git - lyx.git/blobdiff - src/CoordCache.h
Amend 207eaeee9071cb
[lyx.git] / 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