]> git.lyx.org Git - lyx.git/blobdiff - src/bufferlist.C
redraw fix 1.
[lyx.git] / src / bufferlist.C
index e93dddae8923d75c21aa1b544488afd29c4f3d98..1617e1ace31a704c6114ebd9d76387a8c8b88850 100644 (file)
@@ -294,7 +294,7 @@ void BufferList::updateIncludedTeXfiles(string const & mastertmpdir)
 void BufferList::emergencyWriteAll()
 {
        for_each(bstore.begin(), bstore.end(),
-                lyx::class_fun(*this, &BufferList::emergencyWrite));
+                lyx::void_class_fun(*this, &BufferList::emergencyWrite));
 }
 
 
@@ -482,11 +482,11 @@ Buffer * BufferList::newFile(string const & name, string tname, bool isNamed)
                                   MakeDisplayPath(tname));
                        // no template, start with empty buffer
                        b->paragraph = new Paragraph;
-                       b->paragraph->layout(textclasslist[b->params.textclass].defaultLayoutName());
+                       b->paragraph->layout(textclasslist[b->params.textclass].defaultLayout());
                }
        } else {  // start with empty buffer
                b->paragraph = new Paragraph;
-                       b->paragraph->layout(textclasslist[b->params.textclass].defaultLayoutName());
+                       b->paragraph->layout(textclasslist[b->params.textclass].defaultLayout());
        }
 
        if (!lyxrc.new_ask_filename && !isNamed) {