fix crashing bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5967 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-01-16 21:17:08 +00:00
parent 29b5e43026
commit 086495bec5
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-01-16 Lars Gullik Bjønnes <larsbj@gullik.net>
* buffer.C (readFile): remember to pass on 'par' when calling
readFile recursively.
2003-01-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> 2003-01-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* MenuBackend.C (expandFormats): add "..." to import formats. * MenuBackend.C (expandFormats): add "..." to import formats.

View File

@ -1216,7 +1216,7 @@ bool Buffer::readFile(LyXLex & lex, string const & filename, Paragraph * par)
istringstream is(STRCONV(ret.second)); istringstream is(STRCONV(ret.second));
LyXLex tmplex(0, 0); LyXLex tmplex(0, 0);
tmplex.setStream(is); tmplex.setStream(is);
return readFile(tmplex, string()); return readFile(tmplex, string(), par);
} else { } else {
// This code is reached if lyx2lyx failed (for // This code is reached if lyx2lyx failed (for
// some reason) to change the file format of // some reason) to change the file format of