mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Revert "Fix bad cursor positioning when entering an inset"
This is not ready yet.
This reverts commit 7ca7873112
.
This commit is contained in:
parent
1538a8352c
commit
a33b633111
@ -1379,9 +1379,7 @@ Inset * TextMetrics::editXY(Cursor & cur, int x, int y,
|
||||
|
||||
// Try to descend recursively inside the inset.
|
||||
Inset * edited = inset->editXY(cur, x, y);
|
||||
// FIXME: it is not clear that the test on position is needed
|
||||
// Remove it if/when semantics of editXY is clarified
|
||||
if (cur.text() == text_ && cur.pos() == it->pos) {
|
||||
if (edited == inset && cur.pos() == it->pos) {
|
||||
// non-editable inset, set cursor after the inset if x is
|
||||
// nearer to that position (bug 9628)
|
||||
bool bound = false; // is modified by getPosNearX
|
||||
|
Loading…
Reference in New Issue
Block a user