mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
Update buffer when an inset or an INFO inset has bee inserted
This is important for info inset, since if updateBuffer needs to be
run in redoParagraph (for the macro code), crashes can happen.
Fixes bug #10944.
(cherry picked from commit 806f40dbd4
)
This commit is contained in:
parent
de748ead81
commit
572b29b139
@ -1185,6 +1185,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
||||
if (cur.selection())
|
||||
cutSelection(cur, true, false);
|
||||
cur.insert(inset);
|
||||
cur.forceBufferUpdate();
|
||||
if (inset->editable() && inset->asInsetText())
|
||||
inset->edit(cur, true);
|
||||
else
|
||||
@ -1922,6 +1923,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
||||
break;
|
||||
cur.recordUndo();
|
||||
insertInset(cur, inset);
|
||||
cur.forceBufferUpdate();
|
||||
cur.posForward();
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user