]> git.lyx.org Git - features.git/commitdiff
Use separate BibInfo for child
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 22 Mar 2018 14:52:23 +0000 (15:52 +0100)
committerRichard Heck <rgheck@lyx.org>
Sun, 15 Apr 2018 04:18:57 +0000 (00:18 -0400)
This is used when the file is compiled standalone

Fixes: #11083
(cherry picked from commit 1c623ffe8f2e34e38248709935ca5fa475d2e05a)

src/Buffer.cpp

index 1597e898729e6241a3f1aa2dd1b914228da55ea9..3c2695619a54e78c31c164528d4e5a4503838ad6 100644 (file)
@@ -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);