Return failure if the file ended unexpectedly.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33293 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-01-31 15:59:23 +00:00
parent 8f09cda025
commit d49438e76c

View File

@ -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;