use masterBuffer() rather than parent()

This also catches grandparents.

Thanks, Riki.
This commit is contained in:
Juergen Spitzmueller 2018-09-02 10:17:23 +02:00
parent 2bb8bd3ec4
commit 5f7b553a1c

View File

@ -2520,7 +2520,7 @@ void Buffer::addBibTeXInfo(docstring const & key, BibTeXInfo const & bin) const
bi[key] = bin;
if (parent() != 0) {
BiblioInfo & masterbi = parent()->d->bibinfo_;
BiblioInfo & masterbi = masterBuffer()->d->bibinfo_;
masterbi[key] = bin;
}
}