]> git.lyx.org Git - features.git/commitdiff
Remove *.bbl and friends when invalidating the bib info cache
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 31 Dec 2018 08:46:08 +0000 (09:46 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 31 Dec 2018 08:46:08 +0000 (09:46 +0100)
This avoids errors when switching engines.

The fix is already in master. We forgot to backport.

src/Buffer.cpp

index 35418a4537a46aeb1fa37f9ef2e6b696b3dc6bf9..b215d1b79cf9c296918d6f3a58bdd8ffd12df490 100644 (file)
@@ -2386,6 +2386,7 @@ void Buffer::invalidateBibinfoCache() const
 {
        d->bibinfo_cache_valid_ = false;
        d->cite_labels_valid_ = false;
+       removeBiblioTempFiles();
        // also invalidate the cache for the parent buffer
        Buffer const * const pbuf = d->parent();
        if (pbuf)