]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetInclude.cpp
Fix the computation of broken InsetRef status between sibling documents
[features.git] / src / insets / InsetInclude.cpp
index 341115cbb323eba2bed325684c0805876f2b4bce..06b52381137c1a449bc9ac671d32237a8da95855 100644 (file)
@@ -1167,6 +1167,9 @@ void InsetInclude::addToToc(DocIterator const & cpit, bool output_active,
                if (!childbuffer)
                        return;
 
+               // Update the child's tocBackend. The outliner uses the master's, but
+               // the navigation menu uses the child's.
+               childbuffer->tocBackend().update(output_active, utype);
                // Include Tocs from children
                childbuffer->inset().addToToc(DocIterator(), output_active, utype,
                                              backend);