* 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:
Stefan Schimanski 2008-01-08 10:29:47 +00:00
parent 926e115e6a
commit c4d85b3f1d

View File

@ -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;
}