Handle change-accept and change-reject in multi-cell selection

Fixes #8426
This commit is contained in:
Juergen Spitzmueller 2019-12-27 12:05:56 +01:00
parent c0f4eb0580
commit da5ad1736a

View File

@ -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);