]> git.lyx.org Git - features.git/commitdiff
Disable append-column with gathered
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 4 Apr 2020 07:27:24 +0000 (09:27 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 4 Apr 2020 07:27:24 +0000 (09:27 +0200)
Fixes #11812

src/mathed/InsetMathSplit.cpp

index ebc8162dd91a38d4eeea15641b5879fc2b05d6e5..31314b3f842822b38bf70ebd02d0978353a81538 100644 (file)
@@ -116,6 +116,12 @@ bool InsetMathSplit::getStatus(Cursor & cur, FuncRequest const & cmd,
        switch (cmd.action()) {
        case LFUN_TABULAR_FEATURE: {
                string s = cmd.getArg(0);
+               if (s == "append-column"
+                   && (name_ == "gathered" || name_ == "lgathered" || name_ == "rgathered")) {
+                       // gathered does not support multiple columns
+                       flag.setEnabled(false);
+                       return true;
+               }
                if (s == "add-vline-left" || s == "add-vline-right") {
                        flag.message(bformat(
                                from_utf8(N_("Can't add vertical grid lines in '%1$s'")),