]> git.lyx.org Git - lyx.git/blobdiff - src/BufferList.cpp
*doxy
[lyx.git] / src / BufferList.cpp
index b68dea9a3ae37a3d961e4694545226e5300a044a..43e81316a640be034ba73bcd83048b8d6495b2f8 100644 (file)
@@ -36,7 +36,7 @@
 
 #include <algorithm>
 #include <functional>
-
+#include <iterator>
 
 
 using namespace std;
@@ -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