]> git.lyx.org Git - lyx.git/blobdiff - src/MenuBackend.cpp
EmbeddedObjects.lyx: add hint how to force a rotation direction for rotated floats
[lyx.git] / src / MenuBackend.cpp
index ec267be21543df9c0465f3dfb0ef47474c3de3da..7865786ff3ff326297b4c0c1e704c8a5aeead262 100644 (file)
@@ -705,7 +705,9 @@ void expandToc(Menu & tomenu, Buffer const * buf)
                return;
        }
 
-       const_cast<Buffer*>(buf)->tocBackend().update();
+       Buffer* cbuf = const_cast<Buffer*>(buf);
+       cbuf->tocBackend().update();
+       cbuf->structureChanged();
 
        // Add an entry for the master doc if this is a child doc
        Buffer const * const master = buf->getMasterBuffer();