]> git.lyx.org Git - lyx.git/blobdiff - src/bufferlist.C
Fix deleting of paragraphs after undo (fix #236).
[lyx.git] / src / bufferlist.C
index 894f069449588ce2dca23c20a5c0fb7a3ec8f5df..f0b289eb92f8ac88aaefa1c427beddcec8c75f33 100644 (file)
@@ -243,14 +243,16 @@ vector<string> const BufferList::getFileNames() const
 
 Buffer * BufferList::first()
 {
-       if (bstore.empty()) return 0;
+       if (bstore.empty())
+               return 0;
        return bstore.front();
 }
 
 
 Buffer * BufferList::getBuffer(unsigned int choice)
 {
-       if (choice >= bstore.size()) return 0;
+       if (choice >= bstore.size())
+               return 0;
        return bstore[choice];
 }
 
@@ -476,7 +478,7 @@ Buffer * BufferList::newFile(string const & name, string tname, bool isNamed)
                        }
                }
                if (!templateok) {
-                       Alert::alert(_("Error!"), _("Unable to open template"), 
+                       Alert::alert(_("Error!"), _("Unable to open template"),
                                   MakeDisplayPath(tname));
                        // no template, start with empty buffer
                        b->paragraph = new Paragraph;