[LyX/master] Revert "Fix correction of row in getPitAndRowNearY"
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Tue Feb 16 11:26:09 UTC 2021
commit 2c2ae5ecd8abfa2b73f479dee8ae39d5bb43b237
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Tue Feb 16 09:27:28 2021 +0100
Revert "Fix correction of row in getPitAndRowNearY"
This reverts commit 08a3405181aed8b4c3d60af8cc3ac785b7e189cd.
---
src/TextMetrics.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp
index eb33944..0f1814c 100644
--- a/src/TextMetrics.cpp
+++ b/src/TextMetrics.cpp
@@ -1371,7 +1371,7 @@ Row const & TextMetrics::getPitAndRowNearY(int & y, pit_type & pit,
--rit;
y = yy;
}
- } else if (up && yy < y) {
+ } else if (up && yy != y) {
if (rit != rlast) {
y = yy + rit->height();
++rit;
More information about the lyx-cvs
mailing list