]> 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>
Sun, 5 Apr 2020 15:18:15 +0000 (17:18 +0200)
Fixes #11812

(cherry picked from commit ed137ee435ea2e9e1d38b6095e8ce51c0c48204a)

src/mathed/InsetMathSplit.cpp
status.23x

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'")),
index 050d93bdc16b1b9db85f8e83ee1957f5220259d8..59b3f06eb6c3ae01c38150c4ab1663c3fe6036d3 100644 (file)
@@ -88,6 +88,9 @@ What's new
 
 - Avoid bleeding of inset background outside of inset (bug 11786).
 
+- Disallow adding columns with gathered environment as this is not
+  supported (bug 11812).
+
 
 * INTERNALS