mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix bug #12033.
Silly mistake: Only considered the parent, not grandparents, etc.
This commit is contained in:
parent
f86411e15d
commit
742348262e
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user