mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix crash (missing Buffer update)
This commit is contained in:
parent
a7590d33e3
commit
f24fa552de
@ -216,6 +216,9 @@ void InsetCommand::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
}
|
||||
InsetCommandParams p(p_.code());
|
||||
InsetCommand::string2params(to_utf8(cmd.argument()), p);
|
||||
if (p == p_)
|
||||
// no change
|
||||
break;
|
||||
if (p.getCmdName().empty())
|
||||
cur.noScreenUpdate();
|
||||
else {
|
||||
@ -226,6 +229,8 @@ void InsetCommand::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
string const data = InsetCommand::params2string(p);
|
||||
lyx::dispatch(FuncRequest(LFUN_INSET_INSERT, data));
|
||||
lyx::dispatch(FuncRequest(LFUN_CHAR_DELETE_FORWARD));
|
||||
cur.forceBufferUpdate();
|
||||
break;
|
||||
} else
|
||||
setParams(p);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user