]> git.lyx.org Git - features.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:40:35 +0000 (15:40 -0400)
Fixes #10237.

src/insets/InsetLayout.cpp

index a1677de41f756d8ed045d517341c1506ef468b1d..088e4bc6e36292158c23b85ebf7faeb5e96777b1 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:  {