diff --git a/src/buffer.C b/src/buffer.C index a0a75ff500..0bbf3aa77a 100644 --- a/src/buffer.C +++ b/src/buffer.C @@ -556,14 +556,15 @@ bool Buffer::readFile(string const & filename) paragraphs().clear(); LyXLex lex(0, 0); lex.setFile(filename); - bool ret = readFile(lex, filename); + if (!readFile(lex, filename)) + return false; // After we have read a file, we must ensure that the buffer // language is set and used in the gui. // If you know of a better place to put this, please tell me. (Lgb) updateDocLang(params().language); - return ret; + return true; } diff --git a/status.14x b/status.14x index d9da1fa208..3ad0347788 100644 --- a/status.14x +++ b/status.14x @@ -47,6 +47,8 @@ What's new - Fix a crash when a used bibtex file is in a non-readable directory (bug 2782). +- Fix a crash when lyx2lyx failed to convert LyX file. + - Ignore the definition of LyXgreyout environment when re-importing a LyX-generated LaTeX file (part of bug 2420).