]> git.lyx.org Git - lyx.git/blobdiff - src/BufferList.cpp
* InsetListings.cpp:
[lyx.git] / src / BufferList.cpp
index b68dea9a3ae37a3d961e4694545226e5300a044a..f9a89f78b239eea29deb6dcfa79b4f7a48e73a53 100644 (file)
@@ -36,8 +36,8 @@
 
 #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