]> git.lyx.org Git - features.git/commitdiff
Allow commands with parameters in InsetMathGrid. For example 'tabular-feature append...
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 5 Feb 2009 16:19:38 +0000 (16:19 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 5 Feb 2009 16:19:38 +0000 (16:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28363 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathGrid.cpp

index b77a18b01688a9f2eec8ba6a3470c1b6ffb6ff49..4e029097e8703e0ab6684fddd1106d3e003b38b4 100644 (file)
@@ -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")));