]> git.lyx.org Git - features.git/blobdiff - src/TextMetrics.cpp
Fix correction of row in getPitAndRowNearY
[features.git] / src / TextMetrics.cpp
index 0f1814cab2ab4acf92f93a7547bb5f3183aad6c7..eb339442b95d7c270272a58c28d20239efb9ee64 100644 (file)
@@ -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;