X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbuffer_funcs.cpp;h=3a480b3e25e62af38d4919242a57a650953bc1b1;hb=c378fede8bd23299bb88c5d4385beb2b43ce5312;hp=5b972e5e0af210044a6085e03c7ab56a79976523;hpb=75773f3c2257bfc273ba3f5a180ec76ba98954ee;p=lyx.git diff --git a/src/buffer_funcs.cpp b/src/buffer_funcs.cpp index 5b972e5e0a..3a480b3e25 100644 --- a/src/buffer_funcs.cpp +++ b/src/buffer_funcs.cpp @@ -132,7 +132,7 @@ Buffer * newFile(string const & filename, string const & templatename, tname = makeAbsPath(templatename); if (!tname.empty()) { - if (!b->readFile(tname)) { + if (b->loadThisLyXFile(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."),