commit 5b2674c1dbf6ba06b160c99e3627eabd23689694
Author: Guillaume Munch <[email protected]>
Date:   Fri Jan 27 00:38:22 2017 +0100

    Update child's TocBackend as well
    
    Before 3391fed3, this was done in InsetInclude::addToToc
---
 src/Buffer.cpp |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 517cd12..5ad548d 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();
 }

Reply via email to