X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbuffer_funcs.cpp;h=3a480b3e25e62af38d4919242a57a650953bc1b1;hb=c378fede8bd23299bb88c5d4385beb2b43ce5312;hp=d184aa2978ccbdc28e9cb8f488b342776763fcf3;hpb=314232d2ff4b419e416d6178ec6dc63a38e68191;p=lyx.git diff --git a/src/buffer_funcs.cpp b/src/buffer_funcs.cpp index d184aa2978..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) != Buffer::ReadSuccess) { + 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."),