From 9a9af55f2297e42a41d61631d12bd52579832991 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 27 Dec 2019 12:05:56 +0100 Subject: [PATCH] Handle change-accept and change-reject in multi-cell selection Fixes #8426 --- src/insets/InsetTabular.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 2.39.5