]> git.lyx.org Git - lyx.git/blobdiff - src/buffer_funcs.cpp
comment
[lyx.git] / src / buffer_funcs.cpp
index 80992f59e253d675670d1b2f6f488d802ad1a742..b22ec6acd990fb972de118879a8963d13fcbaf47 100644 (file)
@@ -509,6 +509,10 @@ void updateLabels(Buffer const & buf, bool childonly)
        ParIterator parit = par_iterator_begin(buf.inset());
        updateLabels(buf, parit);
 
+       if (master != &buf)
+               // TocBackend update will be done later.
+               return;
+
        cbuf.tocBackend().update();
        if (!childonly)
                cbuf.structureChanged();