]> git.lyx.org Git - lyx.git/commitdiff
Prevent that a full source preview of a child clears the master's bibfiles cache.
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 27 Mar 2018 12:29:25 +0000 (14:29 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 27 Mar 2018 12:29:25 +0000 (14:29 +0200)
See #9158

src/Buffer.cpp

index 7024f974d5f4e93f98bd4dbde13a0a5966020212..b7360b301d655c944e3923ad821d64493d4c4a10 100644 (file)
@@ -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