mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
fix for #141
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3475 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0c60793515
commit
14f1b208db
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user