From afd1a0fcc69e39bf571182a8d33f223d56e8bcea Mon Sep 17 00:00:00 2001 From: lasgouttes Date: Mon, 3 Oct 2005 10:53:40 +0000 Subject: [PATCH] provide default type value for math-macro git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10512 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/text3.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 68bc45e164..6205cd8d9b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-10-03 Jean-Marc Lasgouttes + + * text3.C (dispatch): when invoking LFUN_MATH_MACRO with no type + argument, use "newcommand". + 2005-09-28 Jürgen Spitzmüller * cursor.C (setSelection): do not open collapsable insets; diff --git a/src/text3.C b/src/text3.C index 5786a51e97..5718a20136 100644 --- a/src/text3.C +++ b/src/text3.C @@ -1254,7 +1254,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd) int const nargs = s1.empty() ? 0 : convert(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; -- 2.11.4.GIT