mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Use separate BibInfo for child
This is used when the file is compiled standalone
Fixes: #11083
(cherry picked from commit 1c623ffe8f
)
This commit is contained in:
parent
fe24616060
commit
cfce0ac009
@ -2358,7 +2358,7 @@ BiblioInfo const & Buffer::bibInfo() const
|
||||
void Buffer::registerBibfiles(FileNamePairList const & bf) const {
|
||||
Buffer const * const tmp = masterBuffer();
|
||||
if (tmp != this)
|
||||
return tmp->registerBibfiles(bf);
|
||||
tmp->registerBibfiles(bf);
|
||||
|
||||
for (auto const & p : bf) {
|
||||
FileNamePairList::const_iterator tmp =
|
||||
@ -2429,9 +2429,6 @@ 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.
|
||||
BiblioInfo & bi = d->bibinfo_;
|
||||
bi.mergeBiblioInfo(bin);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user