]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLayout.cpp
Some things did not need to be mutable after all
[lyx.git] / src / insets / InsetLayout.cpp
index 7291a60bf14fd7d9242b401b4ef7d569da2c668c..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:  {
@@ -607,9 +610,6 @@ void InsetLayout::readArgument(Lexer & lex)
                } else if (tok == "insertcotext") {
                        lex.next();
                        arg.insertcotext = lex.getBool();
-               } else if (tok == "insertcotext") {
-                       lex.next();
-                       arg.insertcotext = lex.getBool();
                } else if (tok == "leftdelim") {
                        lex.next();
                        arg.ldelim = lex.getDocString();