]> git.lyx.org Git - features.git/blobdiff - src/MenuBackend.cpp
Update Toc when navigation menu is trigged.
[features.git] / src / MenuBackend.cpp
index dce50f52d11a7259bc08c0c5d71b5305401ae91a..ec267be21543df9c0465f3dfb0ef47474c3de3da 100644 (file)
@@ -705,6 +705,8 @@ void expandToc(Menu & tomenu, Buffer const * buf)
                return;
        }
 
+       const_cast<Buffer*>(buf)->tocBackend().update();
+
        // Add an entry for the master doc if this is a child doc
        Buffer const * const master = buf->getMasterBuffer();
        if (buf != master) {