Missing backports in the context of #9158

This fixes the remaining regressions in stable with citation
This commit is contained in:
Juergen Spitzmueller 2018-10-15 08:04:31 +02:00
parent 481633eab4
commit 67495a71d1
3 changed files with 14 additions and 0 deletions

View File

@ -4808,6 +4808,11 @@ void Buffer::updateBuffer(UpdateScope scope, UpdateType utype) const
if (master == this && !d->ignore_parent) {
textclass.counters().reset(from_ascii("bibitem"));
reloadBibInfoCache();
// we will re-read this cache as we go through, but we need
// to know whether it's changed to know whether we need to
// update the bibinfo cache.
old_bibfiles = d->bibfiles_cache_;
d->bibfiles_cache_.clear();
}
// keep the buffers to be children in this set. If the call from the

View File

@ -879,6 +879,13 @@ void InsetBibtex::validate(LaTeXFeatures & features) const
}
void InsetBibtex::updateBuffer(ParIterator const &, UpdateType)
{
buffer().registerBibfiles(getBibFiles());
}
docstring InsetBibtex::getRefLabel() const
{
if (buffer().masterParams().documentClass().hasLaTeXLayout("chapter"))

View File

@ -57,6 +57,8 @@ public:
int plaintext(odocstringstream & ods, OutputParams const & op,
size_t max_length = INT_MAX) const;
///
void updateBuffer(ParIterator const &, UpdateType);
///
void addToToc(DocIterator const & di, bool output_active,
UpdateType utype, TocBackend & backend) const;
///