improve fix for #6303 as suggested by Richard

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36799 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2010-12-09 22:35:44 +00:00
parent a7de5bc8b3
commit f2cc066c49

View File

@ -2508,11 +2508,9 @@ bool GuiView::closeBuffer(Buffer & buf)
return true;
}
}
// open all children again to avoid a crash (bug 6603)
// FIXME updateMacros() does more than needed
buf.updateMacros();
// get rid of dangling inset pointers in TOC (bug 6603)
buf.tocBackend().update();
// open all children again to avoid a crash because of dangling
// pointers (bug 6603)
buf.updateBuffer();
return false;
}