Do not overwrite InsetLayout font/color

This commit is contained in:
Juergen Spitzmueller 2021-01-30 15:16:12 +01:00
parent c8e04eb2f4
commit 897ee2ed88

View 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