]> git.lyx.org Git - lyx.git/blobdiff - src/TextClass.cpp
* GuiDocument.cpp: before accessing the buffer() in paramsToDialog(), check
[lyx.git] / src / TextClass.cpp
index f98767472bed20ce6e81c23bfab4ed76580fd715..981dcd185c23b99d256cfca5f4add1c9fb26b8e9 100644 (file)
@@ -66,7 +66,7 @@ private:
 };
 
 // Keep the changes documented in the Customization manual. 
-int const FORMAT = 21;
+int const FORMAT = 22;
 
 
 bool layout2layout(FileName const & filename, FileName const & tempfile)
@@ -622,7 +622,8 @@ TextClass::ReturnValues TextClass::read(Lexer & lexrc, ReadType rt)
                                InsetLayout & il = insetlayoutlist_[name];
                                error = !il.read(lexrc, *this);
                        } else {
-                               InsetLayout il(name);
+                               InsetLayout il;
+                               il.setName(name);
                                error = !il.read(lexrc, *this);
                                if (!error)
                                        insetlayoutlist_[name] = il;