diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index c59f6427a0..80d2e7cae5 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -5039,6 +5039,8 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd) } break; + case LFUN_CHANGE_ACCEPT: + case LFUN_CHANGE_REJECT: case LFUN_FONT_EMPH: case LFUN_FONT_BOLD: case LFUN_FONT_BOLDSYMBOL: @@ -5083,6 +5085,10 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd) cell(tmpcur.idx())->dispatch(tmpcur, cmd); } } + if (act == LFUN_CHANGE_ACCEPT || act == LFUN_CHANGE_REJECT) { + // cursor might be invalid + cur.fixIfBroken(); + } break; } else { cell(cur.idx())->dispatch(cur, cmd);