]> git.lyx.org Git - features.git/commit
Fix correction of row in getPitAndRowNearY
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 11 Feb 2021 16:10:28 +0000 (17:10 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 12 Feb 2021 17:35:06 +0000 (18:35 +0100)
commit08a3405181aed8b4c3d60af8cc3ac785b7e189cd
tree4df8c59eeb192d2e7959acc5cb9a989cb91807eb
parentb75fc7056118c1255134572789eaabae2efb81d6
Fix correction of row in getPitAndRowNearY

Now that the ascent of the paragraph metrics is not necessarily the
ascent of the first row (see 907f0207), the test is too strict. Now it
is more symmetrical wrt the !up case.

Note that changing this part of code is associated with a
non-negligible risk of creating a bug elsewhere.

Fixes part of bug #12123.
src/TextMetrics.cpp