]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlBibitem.C
The reference dialog now disconnects from the inset on Apply. Its behaviour
[lyx.git] / src / frontends / controllers / ControlBibitem.C
index c1023622deef1a0ec50000507682465f77951b26..2f57feb3872fb067583947fe0a3381f282ba44c2 100644 (file)
@@ -25,6 +25,7 @@
 #include "Dialogs.h"
 #include "LyXView.h"
 #include "buffer.h"
+#include "BufferView.h"
 
 using SigC::slot;
 
@@ -34,6 +35,7 @@ ControlBibitem::ControlBibitem(LyXView & lv, Dialogs & d)
        d_.showBibitem.connect(slot(this, &ControlBibitem::showInset));
 }
 
+
 void ControlBibitem::applyParamsToInset()
 {
        // FIXME:
@@ -48,5 +50,5 @@ void ControlBibitem::applyParamsToInset()
        // We need to do a redraw because the maximum
        // InsetBibKey width could have changed
        lv_.view()->redraw();
-       lv_.view()->fitCursor(lv_.view()->getLyXText());
+       lv_.view()->fitCursor();
 }