]> git.lyx.org Git - features.git/commit
Let getPosNearX take horizontal scrolling into account
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 30 Apr 2016 23:27:13 +0000 (01:27 +0200)
committerRichard Heck <rgheck@lyx.org>
Wed, 15 Jun 2016 21:32:52 +0000 (22:32 +0100)
commite359124a86e210a13a4266fc3e0f1e0ae36503b0
tree3a91f2ffd96d16afb1cbfa3c15afa8aff6984e24
parent76c06e35358bb3e8b0cbd602b1a7e4f53fb5aeac
Let getPosNearX take horizontal scrolling into account

If we do not do that, it is not possible to position the cursor after
a long inset with the mouse.

To do this, it is necessary to add the pit information to the Row
object. This is a good idea in any case, and will allow to simplify
some code later on.

Fixes bug #10094.
(cherry picked from commit 8851645799ef67015e49fd75b9dfeed65d685e85)
src/Row.cpp
src/Row.h
src/TextMetrics.cpp
src/TextMetrics.h
status.22x