]> git.lyx.org Git - features.git/commitdiff
Revert "Use separate BibInfo for child"
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 2 Sep 2018 01:47:23 +0000 (21:47 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Sun, 2 Sep 2018 01:47:23 +0000 (21:47 -0400)
This reverts commit cfce0ac009e8820df79d845c2b0c237cbd441dcb.

src/Buffer.cpp

index b41ddc45d3fe00d22b059e0c5278a7d26896aff0..4d527422e39ebe943fb09581e2f2a6ca4b82c68e 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)
-               tmp->registerBibfiles(bf);
+               return tmp->registerBibfiles(bf);
 
        for (auto const & p : bf) {
                FileNamePairList::const_iterator tmp =
@@ -2429,6 +2429,9 @@ 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);