From 14f1b208db911b0e3d9cf13dd015c50a9964b945 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 1 Feb 2002 17:09:55 +0000 Subject: [PATCH] fix for #141 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3475 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_cursor.C | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index 28c0ece6e0..e179276a79 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -1296,6 +1296,14 @@ bool MathCursor::interpret(string const & s) return true; } + // prevent entering of recursive macros + if (formula()->lyxCode() == Inset::MATHMACRO_CODE + && formula()->getInsetName() == s.substr(1)) + { + lyxerr << "can't enter recursive macro\n"; + return true; + } + niceInsert(createMathInset(s.substr(1))); return true; } -- 2.39.2