]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlToc.C
The reference dialog now disconnects from the inset on Apply. Its behaviour
[lyx.git] / src / frontends / controllers / ControlToc.C
index c363eff0cd79c0c18d11a0b831b32efacf6a5df7..9498787396c0e7eb285e89d70b953ad3fe2bfec6 100644 (file)
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /* This file is part of
  * ====================================================== 
  *
@@ -27,6 +26,7 @@
 #include "lyxfunc.h"
 #include "support/lstrings.h" // tostr
 #include "gettext.h"
+#include "BufferView.h"
 
 using std::vector;
 using SigC::slot;
@@ -42,7 +42,7 @@ ControlToc::ControlToc(LyXView & lv, Dialogs & d)
 void ControlToc::Goto(int const & id) const
 {
        string const tmp = tostr(id);
-       lv_.getLyXFunc()->Dispatch(LFUN_GOTO_PARAGRAPH, tmp);
+       lv_.getLyXFunc()->dispatch(LFUN_GOTO_PARAGRAPH, tmp);
 }