mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +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());
|
InsetCommandParams p(p_.code());
|
||||||
InsetCommand::string2params(to_utf8(cmd.argument()), p);
|
InsetCommand::string2params(to_utf8(cmd.argument()), p);
|
||||||
|
if (p == p_)
|
||||||
|
// no change
|
||||||
|
break;
|
||||||
if (p.getCmdName().empty())
|
if (p.getCmdName().empty())
|
||||||
cur.noScreenUpdate();
|
cur.noScreenUpdate();
|
||||||
else {
|
else {
|
||||||
@ -226,6 +229,8 @@ void InsetCommand::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
string const data = InsetCommand::params2string(p);
|
string const data = InsetCommand::params2string(p);
|
||||||
lyx::dispatch(FuncRequest(LFUN_INSET_INSERT, data));
|
lyx::dispatch(FuncRequest(LFUN_INSET_INSERT, data));
|
||||||
lyx::dispatch(FuncRequest(LFUN_CHAR_DELETE_FORWARD));
|
lyx::dispatch(FuncRequest(LFUN_CHAR_DELETE_FORWARD));
|
||||||
|
cur.forceBufferUpdate();
|
||||||
|
break;
|
||||||
} else
|
} else
|
||||||
setParams(p);
|
setParams(p);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user