]> git.lyx.org Git - features.git/commit
editXY: make cursor positionning correct over non editable inset
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 6 Apr 2017 13:08:50 +0000 (15:08 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 23 May 2017 08:57:26 +0000 (10:57 +0200)
commitbafc40b857b5fc3341031365bf2f4cb3a4a13e45
tree26fda34ec0535928141eb9e1c87de52323f0430c
parentdb9f41c03975654254cc10c7628ec8173dbc7f13
editXY: make cursor positionning correct over non editable inset

Instead of using complicated (and wrong) code, it is better to use
getPosNearX here.

Also simplify the code by removing temporary variables.

Fixes part of #10569.

(cherry picked from commit 6a0c1c65734e0f25eb4fcbfb8926c98b77117c29)
src/TextMetrics.cpp