]> git.lyx.org Git - lyx.git/blobdiff - src/BufferList.cpp
listerrors.lyx : Update a link.
[lyx.git] / src / BufferList.cpp
index 01b344f039d85920aee497935fd01a4ddd245326..c0700b4f879ccaf74bf9a9146dfdb5213fdb54b9 100644 (file)
@@ -180,8 +180,8 @@ Buffer * BufferList::next(Buffer const * buf) const
 
        if (bstore.empty())
                return 0;
-       BufferStorage::const_iterator it = find(bstore.begin(),
-                                               bstore.end(), buf);
+       BufferStorage::const_iterator it = 
+                       find(bstore.begin(), bstore.end(), buf);
        LASSERT(it != bstore.end(), /**/);
        ++it;
        Buffer * nextbuf = (it == bstore.end()) ? bstore.front() : *it;
@@ -195,8 +195,8 @@ Buffer * BufferList::previous(Buffer const * buf) const
 
        if (bstore.empty())
                return 0;
-       BufferStorage::const_iterator it = find(bstore.begin(),
-                                               bstore.end(), buf);
+       BufferStorage::const_iterator it = 
+                       find(bstore.begin(), bstore.end(), buf);
        LASSERT(it != bstore.end(), /**/);
 
        Buffer * previousbuf = (it == bstore.begin()) ? bstore.back() : *(it - 1);
@@ -212,7 +212,8 @@ void BufferList::updateIncludedTeXfiles(string const & masterTmpDir,
        for (; it != end; ++it) {
                if (!(*it)->isDepClean(masterTmpDir)) {
                        string writefile = addName(masterTmpDir, (*it)->latexName());
-                       (*it)->makeLaTeXFile(FileName(writefile), runparams, false);
+                       (*it)->makeLaTeXFile(FileName(writefile), masterTmpDir,
+                                            runparams, Buffer::OnlyBody);
                        (*it)->markDepClean(masterTmpDir);
                }
        }