Properly convert from ReadStatus to boolean.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35833 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-10-25 15:21:08 +00:00
parent 80a09f4ea6
commit 314232d2ff

View File

@ -132,7 +132,7 @@ Buffer * newFile(string const & filename, string const & templatename,
tname = makeAbsPath(templatename);
if (!tname.empty()) {
if (!b->readFile(tname)) {
if (b->readFile(tname) != Buffer::ReadSuccess) {
docstring const file = makeDisplayPath(tname.absFileName(), 50);
docstring const text = bformat(
_("The specified document template\n%1$s\ncould not be read."),