mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Do not call recordUndo(), lyx::dispatch handles it.
This avoids extra memory use (and would mark document dirty even if read-only).
This commit is contained in:
parent
3b28ac4637
commit
48ee2fd07b
@ -2079,7 +2079,6 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
docstring insname = ins->layoutName();
|
||||
while (!insname.empty()) {
|
||||
if (insname == name || name == from_utf8("*")) {
|
||||
curs.recordUndo();
|
||||
lyx::dispatch(fr, dr);
|
||||
// we do not want to remember selection here
|
||||
curs.clearSelection();
|
||||
|
Loading…
Reference in New Issue
Block a user