[LyX/master] Handle change-accept and change-reject in multi-cell selection
Juergen Spitzmueller
spitz at lyx.org
Fri Dec 27 10:50:09 UTC 2019
commit da5ad1736ad3bd51719c92c525cc7d9122b36f7b
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Fri Dec 27 12:05:56 2019 +0100
Handle change-accept and change-reject in multi-cell selection
Fixes #8426
---
src/insets/InsetTabular.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index c59f642..80d2e7c 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);
More information about the lyx-cvs
mailing list