]> git.lyx.org Git - features.git/commit
Avoid calling Buffer::getMacro inside the MathMacro copy constructor
authorEnrico Forestieri <forenr@lyx.org>
Sun, 5 Jul 2015 18:44:54 +0000 (20:44 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 5 Jul 2015 18:44:54 +0000 (20:44 +0200)
commit4dff1394ab845878f16cb03455477cfb44ceb8cb
tree7a7ea18529471f83a5018b533f09134e506cce7a
parent2ea3e07a23f9e0d441fd9352bf19601aaf791c03
Avoid calling Buffer::getMacro inside the MathMacro copy constructor

It turns out that it is always better using the copy of the MacroData
for updating the macro_ pointer to avoid problems related to the cursor
position.
src/mathed/MathMacro.cpp