]> git.lyx.org Git - features.git/commit
Fix bug 1395 by Stefan Schimanski:
authorAbdelrazak Younes <younes@lyx.org>
Tue, 17 Apr 2007 13:15:00 +0000 (13:15 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 17 Apr 2007 13:15:00 +0000 (13:15 +0000)
commit71e8668375ae367b07dfe1000e7f0410ef1013db
tree7c22da9fb1813f831563fb9569d00b8866c3d56e
parent8874db5f2287ccbe1e3c31a8c4f59bb53c0eb01e
Fix bug 1395 by Stefan Schimanski:

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@17836 a592a061-630c-0410-9148-cb99ea01b6c8
src/mathed/InsetMath.h
src/mathed/InsetMathBrace.h
src/mathed/InsetMathMacro.C
src/mathed/InsetMathMacro.h
src/mathed/MathData.C
src/mathed/MathData.h
src/mathed/MathFactory.C
src/mathed/MathMacroTable.C
src/mathed/MathMacroTable.h
src/mathed/MathMacroTemplate.C