From: Richard Kimberly Heck Date: Sun, 6 Dec 2020 01:27:29 +0000 (-0500) Subject: Fix bug #12033. X-Git-Tag: 2.4.0-alpha3~551 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=742348262ec6a8f65abc95a50ce0a270b90e4dbb;p=lyx.git Fix bug #12033. Silly mistake: Only considered the parent, not grandparents, etc. --- 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); }