]> git.lyx.org Git - features.git/commitdiff
improve fix for #6303 as suggested by Richard
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 9 Dec 2010 22:35:44 +0000 (22:35 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 9 Dec 2010 22:35:44 +0000 (22:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36799 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index c75446f884d1a57efe967e9970a751392f529837..5dbdde30a7ebc7260cb7047396caa6f3db84cb43 100644 (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;
 }