From 742348262ec6a8f65abc95a50ce0a270b90e4dbb Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Sat, 5 Dec 2020 20:27:29 -0500 Subject: [PATCH] Fix bug #12033. Silly mistake: Only considered the parent, not grandparents, etc. --- src/Buffer.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 0196965153..08095a1735 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -2594,16 +2594,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() != nullptr) { - BiblioInfo & masterbi = parent()->d->bibinfo_; - masterbi.mergeBiblioInfo(bin); - } + if (parent()) + parent()->addBiblioInfo(bin); } -- 2.39.5