mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
74aaf64a53
commit
ee4ab70bd4
@ -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
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user