When entering an inset by cursor, reset boundary

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

Fixes bug #10630.
This commit is contained in:
Jean-Marc Lasgouttes 2017-06-14 15:08:27 +02:00
parent e2ce2e80d7
commit 2e84b8030e

View File

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