mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
* fix a crash during undo: cloned MathMacroTemplates need updated child insets which point back to the correct (cloned) template.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22430 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
926e115e6a
commit
c4d85b3f1d
@ -393,7 +393,11 @@ MathMacroTemplate::MathMacroTemplate(docstring const & str)
|
||||
|
||||
Inset * MathMacroTemplate::clone() const
|
||||
{
|
||||
return new MathMacroTemplate(*this);
|
||||
MathMacroTemplate * inset = new MathMacroTemplate(*this);
|
||||
// the parent pointers of the proxy insets above will point to
|
||||
// to the old template. Hence, the look must be updated.
|
||||
inset->updateLook();
|
||||
return inset;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user