From: Vincent van Ravesteijn Date: Sun, 31 Jan 2010 15:59:23 +0000 (+0000) Subject: Return failure if the file ended unexpectedly. X-Git-Tag: 2.0.0~4171 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d49438e76c964ca011bbf119e833fb1835f55308;p=features.git Return failure if the file ended unexpectedly. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33293 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 1b52e248d9..02634402cf 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -964,6 +964,7 @@ Buffer::ReadStatus Buffer::readFile(Lexer & lex, FileName const & filename, bformat(_("%1$s ended unexpectedly, which means" " that it is probably corrupted."), from_utf8(filename.absFilename()))); + return failure; } d->file_fully_loaded = true;