#include "LyXView.h"
#include "vc-backend.h"
#include "TextCache.h"
+#include "lyxtextclasslist.h"
#include "frontends/Alert.h"
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];
}
}
}
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;
+ b->paragraph->layout(textclasslist[b->params.textclass].defaultLayoutName());
}
} else { // start with empty buffer
b->paragraph = new Paragraph;
+ b->paragraph->layout(textclasslist[b->params.textclass].defaultLayoutName());
}
if (!lyxrc.new_ask_filename && !isNamed) {