X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBuffer.cpp;h=7522dce4343938d433bf26fed31bada34d1be385;hb=92209fb6b8c35fc71ff4d0796a48eaaed2857690;hp=3d3bb538e545ff5d54255e78087f260abf43ed8e;hpb=5b2b0d5c76cf2dddeed963726234bcf06f91f449;p=lyx.git diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 3d3bb538e5..7522dce434 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -2434,7 +2434,7 @@ void Buffer::getLabelList(vector> & shared_ptr toc = d->toc_backend.toc("label"); for (auto const & tocit : *toc) { if (tocit.depth() == 0) { - list.push_back(make_tuple(tocit.str(), tocit.asString(),tocit.prettyStr())); + list.push_back(make_tuple(tocit.str(), tocit.asString(), tocit.prettyStr())); } } } @@ -2689,6 +2689,11 @@ bool Buffer::citeLabelsValid() const void Buffer::removeBiblioTempFiles() const { + if (theApp()->isBufferBusy(this)) { + removeBiblioTemps = true; + return; + } + // We remove files that contain LaTeX commands specific to the // particular bibliographic style being used, in order to avoid // LaTeX errors when we switch style. @@ -2702,6 +2707,7 @@ void Buffer::removeBiblioTempFiles() const Buffer const * const pbuf = parent(); if (pbuf) pbuf->removeBiblioTempFiles(); + removeBiblioTemps = false; } @@ -5342,6 +5348,10 @@ void Buffer::Impl::setLabel(ParIterator & it, UpdateType utype) const void Buffer::updateBuffer(ParIterator & parit, UpdateType utype, bool const deleted) const { + // if fomatted references are shown in workarea update buffer accordingly + if (params().use_formatted_ref) + utype = OutputUpdate; + pushIncludedBuffer(this); // LASSERT: Is it safe to continue here, or should we just return? LASSERT(parit.pit() == 0, /**/);