]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.cpp
full support for table rotations; fileformat change
[lyx.git] / src / insets / InsetTOC.cpp
index bac2f43699b27c9aa5dd92656ab4aabfa3bea2d6..0ab4b65816f7d19e5da333fa2a9fae925f75c150 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "Buffer.h"
 #include "BufferParams.h"
+#include "BufferView.h"
 #include "Cursor.h"
 #include "DispatchResult.h"
 #include "Font.h"
@@ -64,7 +65,7 @@ void InsetTOC::doDispatch(Cursor & cur, FuncRequest & cmd) {
        switch (cmd.action()) {
        case LFUN_MOUSE_RELEASE:
                if (!cur.selection() && cmd.button() == mouse_button::button1) {
-                       showInsetDialog(&cur.bv());
+                       cur.bv().showDialog("toc", params2string(params()));
                        cur.dispatched();
                }
                break;