]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.cpp
This optional argument to the InsetCollapsable constructor
[lyx.git] / src / insets / Inset.cpp
index c45fd0975f7a85fe4dca04c81be7b06a1d15080b..40f33d9fd11d540d405ec1dc525abbd4610f0a3f 100644 (file)
@@ -150,7 +150,7 @@ Buffer const & Inset::buffer() const
 
 bool Inset::isBufferValid() const
 {
-       return theBufferList().isLoaded(buffer_);
+       return buffer_ && theBufferList().isLoaded(buffer_);
 }
 
 
@@ -430,7 +430,7 @@ void Inset::dump() const
 
 ColorCode Inset::backgroundColor() const
 {
-       return Color_background;
+       return Color_none;
 }