diff --git a/src/buffer_funcs.cpp b/src/buffer_funcs.cpp index be53275791..96a62f397d 100644 --- a/src/buffer_funcs.cpp +++ b/src/buffer_funcs.cpp @@ -165,7 +165,7 @@ Buffer * newUnnamedFile(FileName const & path, string const & prefix, } while (theBufferList().exists(filename) || filename.isReadableFile()); - return newFile(filename.absFilename(), "", false); + return newFile(filename.absFilename(), templatename, false); }