]> git.lyx.org Git - lyx.git/blobdiff - src/TextClass.cpp
make index label translatable
[lyx.git] / src / TextClass.cpp
index dcff59a94541f8fbee64476934181882ea61b028..8aae1abe87667f081ba339f8327cb8a461266ccc 100644 (file)
@@ -694,6 +694,7 @@ void TextClass::readInsetLayout(Lexer & lexrc, docstring const & name)
                case IL_FONT:
                        font.lyxRead(lexrc);
                        font.realize(defaultfont());
+                       // So: define font before labelfont
                        labelfont = font;
                        break;
                case IL_BGCOLOR: {
@@ -1058,6 +1059,7 @@ InsetLayout const & TextClass::insetlayout(docstring const & name) const
        }
        static InsetLayout empty;
        empty.labelstring = from_utf8("UNDEFINED");
+       empty.bgcolor = Color::error;
        return empty;
 }