]> git.lyx.org Git - features.git/commit
Fix crash when copying a macro with instant preview on
authorEnrico Forestieri <forenr@lyx.org>
Wed, 24 Jun 2015 21:38:53 +0000 (23:38 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 24 Jun 2015 21:38:53 +0000 (23:38 +0200)
commitf3b03699efd7eb644281074edaa92725ed8ccdea
tree17c5f3981b68c4b3b36718002701ac1a90e6569f
parente4fada8c5712b2bccda662d716a6de11bbfdc891
Fix crash when copying a macro with instant preview on

The MacroData pointer is updated by MathData::metrics() which is not
called when selecting a math inset with instant preview for math on.
Thus, we have to update it in the copy constructor otherwise a crash
is almost assured when hitting Ctrl+C.
src/mathed/MacroTable.h
src/mathed/MathMacro.cpp