]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #12033.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 6 Dec 2020 01:27:29 +0000 (20:27 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 6 Dec 2020 01:30:45 +0000 (20:30 -0500)
Silly mistake: Only considered the parent, not grandparents, etc.

src/Buffer.cpp

index 01969651532811f28285cec6f9f7192500b6c7fd..08095a173508efc0c3837a829f4560638b6cceab 100644 (file)
@@ -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);
 }