commit 742348262ec6a8f65abc95a50ce0a270b90e4dbb
Author: Richard Kimberly Heck <[email protected]>
Date: Sat Dec 5 20:27:29 2020 -0500
Fix bug #12033.
Silly mistake: Only considered the parent, not grandparents, etc.
---
src/Buffer.cpp | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 0196965..08095a1 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);
}
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs