]> git.lyx.org Git - features.git/commitdiff
Missing backports in the context of #9158
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 15 Oct 2018 06:04:31 +0000 (08:04 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 15 Oct 2018 06:04:31 +0000 (08:04 +0200)
This fixes the remaining regressions in stable with citation

src/Buffer.cpp
src/insets/InsetBibtex.cpp
src/insets/InsetBibtex.h

index fce5b4ce97ff73046978796e0efe0636b9a44b44..11968743573478a50c738dc329fd075d8ada5344 100644 (file)
@@ -4808,6 +4808,11 @@ void Buffer::updateBuffer(UpdateScope scope, UpdateType utype) const
        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
+               // to know whether it's changed to know whether we need to
+               // update the bibinfo cache.
+               old_bibfiles = d->bibfiles_cache_;
+               d->bibfiles_cache_.clear();
        }
 
        // keep the buffers to be children in this set. If the call from the
index 9724e953efb04a23444644c662099fd9ec630ea5..e4c7f302c4ac63411e4133fe67bc80abc8019a9d 100644 (file)
@@ -879,6 +879,13 @@ void InsetBibtex::validate(LaTeXFeatures & features) const
 }
 
 
+void InsetBibtex::updateBuffer(ParIterator const &, UpdateType)
+{
+       buffer().registerBibfiles(getBibFiles());
+}
+
+
+
 docstring InsetBibtex::getRefLabel() const 
 { 
        if (buffer().masterParams().documentClass().hasLaTeXLayout("chapter")) 
index bcad1a6b95f86c7e44cc3bf6befce4355047e2f2..c8a659222011b1906cec46853ede5e73db3f846f 100644 (file)
@@ -57,6 +57,8 @@ public:
        int plaintext(odocstringstream & ods, OutputParams const & op,
                      size_t max_length = INT_MAX) const;
        ///
+       void updateBuffer(ParIterator const &, UpdateType);
+       ///
        void addToToc(DocIterator const & di, bool output_active,
                                  UpdateType utype, TocBackend & backend) const;
        ///