]> git.lyx.org Git - lyx.git/commitdiff
By default, charstyles should not permit layout changes internally.
authorRichard Heck <rgheck@lyx.org>
Mon, 20 Jun 2016 15:30:32 +0000 (11:30 -0400)
committerRichard Heck <rgheck@lyx.org>
Tue, 21 Jun 2016 19:55:12 +0000 (15:55 -0400)
Fixes #10237.

(cherry picked from commit 152817576adaefaa1be8f124b9feecd5c2bfd7c2)

src/insets/InsetLayout.cpp
status.22x

index 7291a60bf14fd7d9242b401b4ef7d569da2c668c..1612cd1a2d63dc364c9de4287cef01a2383e4077 100644 (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:  {
index 193ebce70f183ba72859b6dac7c46ef52838e9ba..8072a9b84410500df5cc5139f1175bc6acb9da25 100644 (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