From 4b1d73775c8b467586542eaa1b1a253ef8aa57ec Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Thu, 5 Feb 2009 16:19:38 +0000 Subject: [PATCH] Allow commands with parameters in InsetMathGrid. For example 'tabular-feature append-row 4' git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28363 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathGrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp index b77a18b016..4e029097e8 100644 --- a/src/mathed/InsetMathGrid.cpp +++ b/src/mathed/InsetMathGrid.cpp @@ -1374,7 +1374,7 @@ bool InsetMathGrid::getStatus(Cursor & cur, FuncRequest const & cmd, { switch (cmd.action) { case LFUN_TABULAR_FEATURE: { - string const s = to_utf8(cmd.argument()); + string const s = cmd.getArg(0); if (nrows() <= 1 && (s == "delete-row" || s == "swap-row")) { status.setEnabled(false); status.message(from_utf8(N_("Only one row"))); -- 2.39.5