]> git.lyx.org Git - features.git/commit
Fix missing updates for lazy MacroData
authorGeorg Baum <baum@lyx.org>
Fri, 11 Oct 2013 18:38:05 +0000 (20:38 +0200)
committerGeorg Baum <baum@lyx.org>
Fri, 11 Oct 2013 18:38:05 +0000 (20:38 +0200)
commit561c5bfd50664bd5eb172a1de58a930ef2eb746a
treef21778136eb0a7c3053c5f10f8ce55acfa7df916
parent50af06c29b90d69ad0964c9ab9258bcc3a0036e8
Fix missing updates for lazy MacroData

Not all accessors did update the data previously. Therefore it could happen
that document export from the command line would output \newcommand, and from
GUI it would output \renewcommand for the same macro, simply because in the
GUI case the data was updated as a side effect of the GUI thread reading some
other member.
I also removed the mutable flag for requires_, since this member is always
set on construction and does not need any lazy update.
src/mathed/MacroTable.cpp
src/mathed/MacroTable.h