X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FBufferList.cpp;h=c0700b4f879ccaf74bf9a9146dfdb5213fdb54b9;hb=1cdd5fcb6f76ef8066707c521eef0c01cead00dd;hp=01b344f039d85920aee497935fd01a4ddd245326;hpb=7c17e970b1e172006fc33bb4b960ba0d9a67880b;p=lyx.git diff --git a/src/BufferList.cpp b/src/BufferList.cpp index 01b344f039..c0700b4f87 100644 --- a/src/BufferList.cpp +++ b/src/BufferList.cpp @@ -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); } }