]> git.lyx.org Git - lyx.git/commit
Make the export of macros thread-safer
authorVincent van Ravesteijn <vfr@lyx.org>
Fri, 11 Oct 2013 21:36:56 +0000 (23:36 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Sat, 12 Oct 2013 00:36:08 +0000 (02:36 +0200)
commit6ed292122d9c5a2cf4a3a50e1e2e767882b81e91
tree0caf63068776fd5f173d5e89f90f960e0a2d16b4
parent9680f392b01217ae97092dd9c021ae674208ac8f
Make the export of macros thread-safer

When we export the file to latex, we use the redefinition_ variable to check whether we should output newcommand or renewcommand. This variable was set by the MathMacroTemplate::metrics() function, and this caused problem when the export is running in a different thread as the GUI.

In general, the metrics() functions should not change the Buffer; we have updateBuffer/updateMacros for that purpose.
src/mathed/MathMacroTemplate.cpp
src/mathed/MathMacroTemplate.h