From: Juergen Spitzmueller Date: Tue, 27 Mar 2018 12:29:25 +0000 (+0200) Subject: Prevent that a full source preview of a child clears the master's bibfiles cache. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3661 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a9a7f384885541bdd4ddb21ad19cec71369355de;p=features.git Prevent that a full source preview of a child clears the master's bibfiles cache. See #9158 --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 7024f974d5..b7360b301d 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -4660,8 +4660,9 @@ void Buffer::updateBuffer(UpdateScope scope, UpdateType utype) const DocumentClass const & textclass = master->params().documentClass(); FileNamePairList old_bibfiles; - // do this only if we are the top-level Buffer - if (master == this) { + // Do this only if we are the top-level Buffer. We also need to account + // for the case of a previewed child with ignored parent here. + if (master == this && !d->ignore_parent) { textclass.counters().reset(from_ascii("bibitem")); reloadBibInfoCache(); // we will re-read this cache as we go through, but we need