git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3475 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-02-01 17:09:55 +00:00
parent 0c60793515
commit 14f1b208db

View File

@ -1296,6 +1296,14 @@ bool MathCursor::interpret(string const & s)
return true; 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))); niceInsert(createMathInset(s.substr(1)));
return true; return true;
} }