]> git.lyx.org Git - lyx.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>
Thu, 6 Apr 2017 13:16:59 +0000 (15:16 +0200)
commit6a0c1c65734e0f25eb4fcbfb8926c98b77117c29
tree908fb395942c906bb6790aa6f6d36c701326beb5
parente3d252cd6256b32745b93c0cb0fd5170f448f91c
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.
src/TextMetrics.cpp