When entering an inset by cursor, reset boundary

This happens when cursor-left/right enters an inset.

Fixes bug #10630.

(cherry picked from commit 2e84b8030e)
This commit is contained in:
Jean-Marc Lasgouttes 2017-06-14 15:08:27 +02:00
parent c492f22593
commit 5f08a1b41d
2 changed files with 4 additions and 0 deletions

View File

@ -615,6 +615,7 @@ bool Text::checkAndActivateInset(Cursor & cur, bool front)
--cur.pos();
inset->edit(cur, front);
cur.setCurrentFont();
cur.boundary(false);
return true;
}
@ -634,6 +635,7 @@ bool Text::checkAndActivateInsetVisual(Cursor & cur, bool movingForward, bool mo
inset->edit(cur, movingForward,
movingLeft ? Inset::ENTRY_DIRECTION_RIGHT : Inset::ENTRY_DIRECTION_LEFT);
cur.setCurrentFont();
cur.boundary(false);
return true;
}

View File

@ -76,6 +76,8 @@ What's new
- Fix potential crash when cursor enters an inset (bug 10691).
- Avoid a case of stuck cursor after entering an inset (bug 10630).
* INTERNALS