]> git.lyx.org Git - lyx.git/commitdiff
InsetMathNest.cpp: fix bug 4720 for trunk as well
authorUwe Stöhr <uwestoehr@web.de>
Tue, 15 Apr 2008 23:44:23 +0000 (23:44 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Tue, 15 Apr 2008 23:44:23 +0000 (23:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24287 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathNest.cpp

index 6a5f44ce558022f95903c89f17b32635b01bf53f..80fa025b3ffc680a1b0da998de7b739a67b9e5d6 100644 (file)
@@ -1076,7 +1076,7 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
                        MathData ar;
                        asArray(cmd.argument(), ar);
                        if (ar.size() == 1 && ar[0]->asNestInset()
-                                       && ar[0]->asNestInset()->nargs())
+                                       && ar[0]->asNestInset()->nargs() > 1)
                                handleNest(cur, ar[0]);
                        else
                                cur.niceInsert(cmd.argument());