]> git.lyx.org Git - features.git/blobdiff - src/BufferView.C
This commit fixes 3 crashes when reverting a document:
[features.git] / src / BufferView.C
index ea667c43f95b50cac6bfcfa7fd202772c3fd15f6..e6f4f85bd721ca04d946af9fdfbbbda6f2d8aa12 100644 (file)
@@ -246,6 +246,7 @@ bool BufferView::loadLyXFile(string const & filename, bool tolastfiles)
                if (!theBufferList().close(theBufferList().getBuffer(s), false))
                        return false;
                // Fall through to new load. (Asger)
+               buffer_ = 0;
        }
 
        Buffer * b = 0;