X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInset.cpp;h=40f33d9fd11d540d405ec1dc525abbd4610f0a3f;hb=d6f1915684328c6e3fe61c6eef8846b5cabec334;hp=ce754bd1fc53b92d45b78417b55a45b576f25e5b;hpb=95a5be2891459ae3d92412e7bab9998599283de4;p=lyx.git diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp index ce754bd1fc..40f33d9fd1 100644 --- a/src/insets/Inset.cpp +++ b/src/insets/Inset.cpp @@ -31,15 +31,15 @@ #include "Text.h" #include "TextClass.h" -#include "frontends/Painter.h" #include "frontends/Application.h" +#include "frontends/Painter.h" -#include "support/lassert.h" #include "support/convert.h" #include "support/debug.h" #include "support/docstream.h" #include "support/ExceptionMessage.h" #include "support/gettext.h" +#include "support/lassert.h" #include @@ -94,7 +94,6 @@ static TranslatorMap const build_translator() InsetName("index_print", INDEX_PRINT_CODE), InsetName("nomencl_print", NOMENCL_PRINT_CODE), InsetName("optarg", OPTARG_CODE), - InsetName("environment", ENVIRONMENT_CODE), InsetName("newline", NEWLINE_CODE), InsetName("line", LINE_CODE), InsetName("branch", BRANCH_CODE), @@ -151,7 +150,7 @@ Buffer const & Inset::buffer() const bool Inset::isBufferValid() const { - return theBufferList().isLoaded(buffer_); + return buffer_ && theBufferList().isLoaded(buffer_); } @@ -431,7 +430,7 @@ void Inset::dump() const ColorCode Inset::backgroundColor() const { - return Color_background; + return Color_none; }