fix a bug just introduced.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7202 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2003-06-22 18:08:49 +00:00
parent 74aaf64a53
commit ee4ab70bd4
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-06-22 Alfredo Braunstein <abraunst@libero.it>
* buffer.C: fix a bug just introduced
2003-06-21 Alfredo Braunstein <abraunst@libero.it>
* buffer.[Ch]: added the parseError signal and use it, removed

View File

@ -273,6 +273,7 @@ int Buffer::readHeader(LyXLex & lex)
lyxerr[Debug::PARSER] << "Handling header token: `"
<< token << '\'' << endl;
string unknown = params.readToken(lex, token);
if (!unknown.empty()) {
if (unknown[0] != '\\') {
@ -306,6 +307,7 @@ bool Buffer::readBody(LyXLex & lex, ParagraphList::iterator pit)
bool the_end_read = false;
if (paragraphs.empty()) {
readHeader(lex);
if (!params.getLyXTextClass().load()) {
string theclass = params.getLyXTextClass().name();
Alert::error(_("Can't load document class"), bformat(