]> git.lyx.org Git - features.git/commit
Fix LaTeXFeatures::useLayout() recursion test
authorGeorg Baum <baum@lyx.org>
Mon, 7 Jul 2014 20:16:13 +0000 (22:16 +0200)
committerGeorg Baum <baum@lyx.org>
Mon, 7 Jul 2014 20:16:13 +0000 (22:16 +0200)
commitd9e234b6da75e83aa52e1f2e35386068348096d8
tree3235f62e94d2dd0ddacf81e2fd5b446bebecd19b
parent29f6aebb3efd62d550e3602baa4cd81d17b55062
Fix LaTeXFeatures::useLayout() recursion test

It was broken in two ways: It was not threadsafe, and it did never detect
any recursion, since the counter was decremented for each non-recursive call
and never incremented again.
src/LaTeXFeatures.cpp
src/LaTeXFeatures.h