]> git.lyx.org Git - lyx.git/commitdiff
Do not overwrite InsetLayout font/color
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 30 Jan 2021 14:16:12 +0000 (15:16 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 30 Jan 2021 14:16:12 +0000 (15:16 +0100)
src/insets/InsetLayout.cpp

index 0ff5c50ad463b8ac3e3a6c77807671f5befc2834..c45a0176d6f97401992b609e4a38facf2c0e9c25 100644 (file)
@@ -217,8 +217,10 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass,
 
        lex.pushTable(elementTags);
 
-       labelfont_ = inherit_font;
-       bgcolor_ = Color_none;
+       if (labelfont_ == sane_font)
+               labelfont_ = inherit_font;
+       if (bgcolor_ == Color_error)
+               bgcolor_ = Color_none;
        bool getout = false;
        // whether we've read the CustomPars or ForcePlain tag
        // for issuing a warning in case MultiPars comes later