mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Update child's TocBackend as well
Before 3391fed3
, this was done in InsetInclude::addToToc
This commit is contained in:
parent
8491962c6b
commit
5b2674c1db
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user