By default, charstyles should not permit layout changes internally.

Fixes #10237.
This commit is contained in:
Richard Heck 2016-06-20 11:30:32 -04:00
parent c4ab621088
commit 152817576a

View File

@ -226,8 +226,11 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass)
lyxtype_ = translateLyXType(lt);
if (lyxtype_ == NOLYXTYPE)
LYXERR0("Unknown LyXType `" << lt << "'.");
if (lyxtype_ == CHARSTYLE)
if (lyxtype_ == CHARSTYLE) {
// by default, charstyles force the plain layout
multipar_ = false;
forceplain_ = true;
}
break;
}
case IL_LATEXTYPE: {