]> git.lyx.org Git - lyx.git/blobdiff - src/BufferList.cpp
GuiBox.cpp: fix this issue: horizontal box alignment is only possible without inner...
[lyx.git] / src / BufferList.cpp
index 175c58ebe20a14f6654beefdbec57fd3b8618cf5..f9a89f78b239eea29deb6dcfa79b4f7a48e73a53 100644 (file)
@@ -37,7 +37,7 @@
 #include <algorithm>
 #include <functional>
 #include <iterator>
-
+#include <memory>
 
 using namespace std;
 using namespace lyx::support;
@@ -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