commit 774c00c4574a271c2b99068d70eac2c06e6ebc2f
Author: Richard Heck <[email protected]>
Date:   Mon Jun 20 11:30:32 2016 -0400

    By default, charstyles should not permit layout changes internally.
    
    Fixes #10237.
    
    (cherry picked from commit 152817576adaefaa1be8f124b9feecd5c2bfd7c2)

diff --git a/src/insets/InsetLayout.cpp b/src/insets/InsetLayout.cpp
index 7291a60..1612cd1 100644
--- a/src/insets/InsetLayout.cpp
+++ b/src/insets/InsetLayout.cpp
@@ -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:  {
diff --git a/status.22x b/status.22x
index 193ebce..8072a9b 100644
--- a/status.22x
+++ b/status.22x
@@ -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
 
 

Reply via email to