]> git.lyx.org Git - lyx.git/blobdiff - src/BufferList.cpp
BufferParams.cpp: fix #6714
[lyx.git] / src / BufferList.cpp
index 175c58ebe20a14f6654beefdbec57fd3b8618cf5..43e81316a640be034ba73bcd83048b8d6495b2f8 100644 (file)
@@ -272,8 +272,7 @@ Buffer * BufferList::getBufferFromTmp(string const & s)
        for (; it < end; ++it) {
                if (prefixIs(s, (*it)->temppath())) {
                        // check whether the filename matches the master
-                       string const master_name = changeExtension(onlyFileName(
-                                               (*it)->absFileName()), ".tex");
+                       string const master_name = (*it)->latexName();
                        if (suffixIs(s, master_name))
                                return *it;
                        // if not, try with the children