]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLayout.cpp
InsetTabular.cpp: fix #6585 also for wrapped floats - thanks Vincent
[lyx.git] / src / insets / InsetLayout.cpp
index 5255c669d0eea89c353b8f41b5f66dc841a8fdd5..4408b9d0b3f2b0ab53d2311677a9847c8a431737 100644 (file)
@@ -38,7 +38,8 @@ InsetLayout::InsetLayout() :
        multipar_(true), custompars_(true), forceplain_(false), 
        passthru_(false), parbreakisnewline_(false), freespacing_(false), 
        keepempty_(false), forceltr_(false), 
-       needprotect_(false), intoc_(false), spellcheck_(true)
+       needprotect_(false), intoc_(false), spellcheck_(true), 
+       resetsfont_(true)
 { 
        labelfont_.setColor(Color_error);
 }
@@ -109,6 +110,7 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass)
                IL_REQUIRES,
                IL_SPELLCHECK,
                IL_REFPREFIX,
+               IL_RESETSFONT,
                IL_END
        };
 
@@ -149,6 +151,7 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass)
                { "preamble", IL_PREAMBLE },
                { "refprefix", IL_REFPREFIX },
                { "requires", IL_REQUIRES },
+               { "resetsfont", IL_RESETSFONT },
                { "spellcheck", IL_SPELLCHECK }
        };
 
@@ -339,6 +342,9 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass)
                case IL_SPELLCHECK:
                        lex >> spellcheck_;
                        break;
+               case IL_RESETSFONT:
+                       lex >> resetsfont_;
+                       break;
                case IL_END:
                        getout = true;
                        break;