[LyX/master] Revert a9c6fb0c.
Pavel Sanda
sanda at lyx.org
Thu Jul 27 19:27:20 UTC 2023
commit 9c7030b36b37ff31955386d53493d501c38a8a35
Author: Pavel Sanda <sanda at lyx.org>
Date: Thu Jul 27 22:39:49 2023 +0200
Revert a9c6fb0c.
Causes regression, see #12841.
---
src/CoordCache.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/CoordCache.h b/src/CoordCache.h
index f26b6b2..f960c24 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
More information about the lyx-cvs
mailing list