]> git.lyx.org Git - features.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)
committerRichard Heck <rgheck@lyx.org>
Sun, 15 Apr 2018 04:26:43 +0000 (00:26 -0400)
See #9158

(cherry picked from commit a9a7f384885541bdd4ddb21ad19cec71369355de)

src/Buffer.cpp
status.23x

index 51fc4e0bd66733e0925ae084ea3506b57a6bc89d..b3ce87f900f0057ed7b7287f1ffec37ae1bc142b 100644 (file)
@@ -4719,8 +4719,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
index 68efcd7455fdddd7e6288963a4bb97a649e682b7..55128e96f7ffc2b6bfb37298f70fbf7bb56a3741 100644 (file)
@@ -191,6 +191,11 @@ What's new
 
 - Ignore deleted material when generating a proposed label (bug 11102).
 
+- Reload citation list when undoing or redoing removal of bibliography
+  inset (bug 9158).
+
+- Fix some master/child issues with biblatex (bug 11083).
+
 
 * INTERNALS