commit cfce0ac009e8820df79d845c2b0c237cbd441dcb
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Thu Mar 22 15:52:23 2018 +0100

    Use separate BibInfo for child
    
    This is used when the file is compiled standalone
    
    Fixes: #11083
    (cherry picked from commit 1c623ffe8f2e34e38248709935ca5fa475d2e05a)
---
 src/Buffer.cpp |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 1597e89..3c26956 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -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);
 

Reply via email to