]> git.lyx.org Git - features.git/commitdiff
provide default type value for math-macro
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 3 Oct 2005 10:53:40 +0000 (10:53 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 3 Oct 2005 10:53:40 +0000 (10:53 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10512 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text3.C

index 68bc45e1647e07903fd09c1d04fa78057a5f4d99..6205cd8d9b9087c132766d9139fc6211901a4d64 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-03  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
+
+       * text3.C (dispatch): when invoking LFUN_MATH_MACRO with no type
+       argument, use "newcommand".
+
 2005-09-28  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
 
        * cursor.C (setSelection): do not open collapsable insets;
index 5786a51e9728c5482ab5ba14a484dad22c34b040..5718a20136762361bf5ada5949da4777f81c62c0 100644 (file)
@@ -1254,7 +1254,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
                        int const nargs = s1.empty() ? 0 : convert<int>(s1);
                        string const s2 = token(s, ' ', 2);
                        string const type = s2.empty() ? "newcommand" : s2;
-                       cur.insert(new MathMacroTemplate(token(s, ' ', 0), nargs, s2));
+                       cur.insert(new MathMacroTemplate(token(s, ' ', 0), nargs, type));
                        //cur.nextInset()->edit(cur, true);
                }
                break;