]> git.lyx.org Git - features.git/commitdiff
Handle change-accept and change-reject in multi-cell selection
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 27 Dec 2019 11:05:56 +0000 (12:05 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:49 +0000 (15:48 +0200)
Fixes #8426

src/insets/InsetTabular.cpp

index c59f6427a0b952a2e04a7873ad108f72c49ca2a1..80d2e7cae51e1fe8bb77c1326b9e98193e6f5b19 100644 (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);