Silly mistake: Only considered the parent, not grandparents, etc.

(cherry picked from commit 742348262e)
This commit is contained in:
Richard Kimberly Heck 2020-12-05 20:27:29 -05:00
parent cc23ada58a
commit 6f433530c5
2 changed files with 6 additions and 7 deletions

View File

@ -2598,16 +2598,14 @@ 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.
// We add the biblio info to the parent buffer,
// if there is one, but also to this buffer, in case
// it is compiled alone.
BiblioInfo & bi = d->bibinfo_;
bi.mergeBiblioInfo(bin);
if (parent() != 0) {
BiblioInfo & masterbi = parent()->d->bibinfo_;
masterbi.mergeBiblioInfo(bin);
}
if (parent())
parent()->addBiblioInfo(bin);
}

View File

@ -58,6 +58,7 @@ What's new
- Improve error message for VCS file registration when RCS package
is not installed.
- Make bibliographies work with grandchildren (bug 12033).
* INTERNALS