]> git.lyx.org Git - features.git/commit
Make sure that math macros are updated at export time.
authorEnrico Forestieri <forenr@lyx.org>
Tue, 13 Sep 2016 05:53:48 +0000 (07:53 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 13 Sep 2016 06:02:02 +0000 (08:02 +0200)
commit8f86ee74cddc6d3d9f8eea4d98ad4d4bab842411
treecc6ade3a5ce9fbf2ea3613127b5f59919d7db036
parent99eeb29e5863516220eb823c2bcc276761107c41
Make sure that math macros are updated at export time.

The math macros system is quite complex. Macros are updated during
metrics calculation, so a missing update is very likely to cause a
crash. This commit tries to assure that they are updated at export
time, which also happens when the table of contents is updated.
Moreover, in order to circumvent a possible missing update, when
a math macro is detected we try to avoid using the sym_ member
of the MacroData class, as it may contain bogus values.
src/BufferView.cpp
src/mathed/MathMacro.cpp