Use separate BibInfo for child

This is used when the file is compiled standalone

Fixes: #11083
(cherry picked from commit 1c623ffe8f)
This commit is contained in:
Juergen Spitzmueller 2018-03-22 15:52:23 +01:00 committed by Richard Heck
parent fe24616060
commit cfce0ac009

View File

@ -2358,7 +2358,7 @@ BiblioInfo const & Buffer::bibInfo() const
void Buffer::registerBibfiles(FileNamePairList const & bf) const {
Buffer const * const tmp = masterBuffer();
if (tmp != this)
return tmp->registerBibfiles(bf);
tmp->registerBibfiles(bf);
for (auto const & p : bf) {
FileNamePairList::const_iterator tmp =
@ -2429,9 +2429,6 @@ void Buffer::collectBibKeys(FileNameList & checkedFiles) const
void Buffer::addBiblioInfo(BiblioInfo const & bin) const
{
// We add the biblio info to the master buffer,
// if there is one, but also to every single buffer,
// in case a child is compiled alone.
BiblioInfo & bi = d->bibinfo_;
bi.mergeBiblioInfo(bin);