diff --git a/src/ChangeLog b/src/ChangeLog index 6a29bb9bc4..f76114582f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-06-22 Alfredo Braunstein + + * buffer.C: fix a bug just introduced + 2003-06-21 Alfredo Braunstein * buffer.[Ch]: added the parseError signal and use it, removed diff --git a/src/buffer.C b/src/buffer.C index 2b724aa8a2..bacbbe69d7 100644 --- a/src/buffer.C +++ b/src/buffer.C @@ -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(