]> git.lyx.org Git - features.git/commit
Real fix for bug 1395 by Stefan Schimanski, this commit replace the one done at revis...
authorAbdelrazak Younes <younes@lyx.org>
Tue, 17 Apr 2007 16:52:43 +0000 (16:52 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 17 Apr 2007 16:52:43 +0000 (16:52 +0000)
commit49395dd85e26d96b5c046ed73ddba2b242b1974c
tree3ec0df79ccc463308c7c7329b576317b26a302b6
parent86c1053f51784c8ad7a479d6d86f299b889e46d5
Real fix for bug 1395 by Stefan Schimanski, this commit replace the one done at revision 17836 which was reverted!

Locking counter added to MacroData: it is increased before drawing/
metric calculations and decreased afterwards in InsetMathMacro. If a
macro is already locked at that point, "Self reference: \foo" is
drawn instead of the macro definition to avoid endless loops.
Moreover inside of the arguments of the macro the counter is
temporarily decreased as those cases do not cause loops. (fixes bug
#1395)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17841 a592a061-630c-0410-9148-cb99ea01b6c8
src/mathed/InsetMathMacro.C
src/mathed/MathMacroTable.C
src/mathed/MathMacroTable.h
src/mathed/MathMacroTemplate.C