[LyX/master] Disable append-column with gathered

Juergen Spitzmueller spitz at lyx.org
Sat Apr 4 07:07:35 UTC 2020


commit ed137ee435ea2e9e1d38b6095e8ce51c0c48204a
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Sat Apr 4 09:27:24 2020 +0200

    Disable append-column with gathered
    
    Fixes #11812
---
 src/mathed/InsetMathSplit.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/mathed/InsetMathSplit.cpp b/src/mathed/InsetMathSplit.cpp
index ebc8162..31314b3 100644
--- a/src/mathed/InsetMathSplit.cpp
+++ b/src/mathed/InsetMathSplit.cpp
@@ -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'")),


More information about the lyx-cvs mailing list