]> git.lyx.org Git - lyx.git/blobdiff - src/buffer_funcs.cpp
Adjust comments to the truth.
[lyx.git] / src / buffer_funcs.cpp
index 5b972e5e0af210044a6085e03c7ab56a79976523..d184aa2978ccbdc28e9cb8f488b342776763fcf3 100644 (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."),