]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.cpp
Stupid bug fix.
[lyx.git] / src / insets / Inset.cpp
index c45fd0975f7a85fe4dca04c81be7b06a1d15080b..095cdaa4823e1a5a7da021ffb0d730667118ae22 100644 (file)
@@ -150,7 +150,7 @@ Buffer const & Inset::buffer() const
 
 bool Inset::isBufferValid() const
 {
-       return theBufferList().isLoaded(buffer_);
+       return buffer_ && theBufferList().isLoaded(buffer_);
 }