]> git.lyx.org Git - features.git/commitdiff
fix a bug just introduced.
authorAlfredo Braunstein <abraunst@lyx.org>
Sun, 22 Jun 2003 18:08:49 +0000 (18:08 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Sun, 22 Jun 2003 18:08:49 +0000 (18:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7202 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/buffer.C

index 6a29bb9bc472fe98ae7481d91cbf4b1d374baf37..f76114582f4c181b5f46948969490fed5c4e4d3f 100644 (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 
index 2b724aa8a2ff163450e7bb1ae4bb17d18e07dfc9..bacbbe69d7eb30239e0af0fd41a2585bbcbb1eda 100644 (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(