From f2cc066c49da7208c9d996568ba344a2ac070791 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Thu, 9 Dec 2010 22:35:44 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiView.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index c75446f884..5dbdde30a7 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -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; } -- 2.39.2