]> git.lyx.org Git - features.git/commit
Row::Element::x2pos: go to nearest point also over insets
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 6 Apr 2017 13:13:24 +0000 (15:13 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 6 Apr 2017 13:18:15 +0000 (15:18 +0200)
commit8769c0fb750a8c46e6f053c5f73b3991393dcd73
treec54a89c6eb7b996c8f9ee870c624fdb30ac57cde
parent01f0ab64a76a422ad7a7b916f3564b37e8feab94
Row::Element::x2pos: go to nearest point also over insets

getPosNearX, which is the only user of x2pos, should always return the
nearest position.

In editXY, there is a need to return the position where the inset
stands, but it is done using checkInsetHit.

This is a simplification of commit eb4a2a19, which has been reverted
at 01f0ab64a.

Fixes part of bug #10569.
src/Row.cpp