By default, charstyles should not permit layout changes internally.

Fixes #10237.

(cherry picked from commit 152817576a)
This commit is contained in:
Richard Heck 2016-06-20 11:30:32 -04:00
parent d1c11283a3
commit 774c00c457
2 changed files with 7 additions and 1 deletions

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: {

View File

@ -81,6 +81,8 @@ What's new
* USER INTERFACE
- CharStyles now prohibit layout changes by default (bug 10237).
- Fix display of labels in right-to-left languages (bug 10169).
- When a counter is stepped, reset recursively all subcounters (bug #10063).
@ -137,6 +139,7 @@ What's new
- Fix drawing of buttons by enforcing equal left/right spacing (bug 10147).
* INTERNALS