Update child's TocBackend as well

Before 3391fed3, this was done in InsetInclude::addToToc
This commit is contained in:
Guillaume Munch 2017-01-27 00:38:22 +01:00
parent 8491962c6b
commit 5b2674c1db

View File

@ -4733,14 +4733,16 @@ void Buffer::updateBuffer(UpdateScope scope, UpdateType utype) const
ParIterator parit = cbuf.par_iterator_begin(); ParIterator parit = cbuf.par_iterator_begin();
updateBuffer(parit, utype); 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) if (master != this)
// TocBackend update will be done later.
return; return;
d->bibinfo_cache_valid_ = true; d->bibinfo_cache_valid_ = true;
d->cite_labels_valid_ = true; d->cite_labels_valid_ = true;
/// FIXME: Perf
cbuf.tocBackend().update(true, utype);
if (scope == UpdateMaster) if (scope == UpdateMaster)
cbuf.structureChanged(); cbuf.structureChanged();
} }