From 5b2674c1dbf6ba06b160c99e3627eabd23689694 Mon Sep 17 00:00:00 2001 From: Guillaume Munch Date: Fri, 27 Jan 2017 00:38:22 +0100 Subject: [PATCH] Update child's TocBackend as well Before 3391fed3, this was done in InsetInclude::addToToc --- src/Buffer.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 517cd12952..5ad548db74 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -4733,14 +4733,16 @@ void Buffer::updateBuffer(UpdateScope scope, UpdateType utype) const ParIterator parit = cbuf.par_iterator_begin(); updateBuffer(parit, utype); + /// FIXME: Perf + /// Update the tocBackend for any buffer. The outliner uses the master's, + /// and the navigation menu uses the child's. + cbuf.tocBackend().update(true, utype); + if (master != this) - // TocBackend update will be done later. return; d->bibinfo_cache_valid_ = true; d->cite_labels_valid_ = true; - /// FIXME: Perf - cbuf.tocBackend().update(true, utype); if (scope == UpdateMaster) cbuf.structureChanged(); }