]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlBibitem.C
John's character.C patch (bug fix).
[lyx.git] / src / frontends / controllers / ControlBibitem.C
index 13c88d0a9708874a241f1b173db39d47358b6ffd..2f57feb3872fb067583947fe0a3381f282ba44c2 100644 (file)
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /* This file is part of
  * ====================================================== 
  *
@@ -26,6 +25,7 @@
 #include "Dialogs.h"
 #include "LyXView.h"
 #include "buffer.h"
+#include "BufferView.h"
 
 using SigC::slot;
 
@@ -35,6 +35,7 @@ ControlBibitem::ControlBibitem(LyXView & lv, Dialogs & d)
        d_.showBibitem.connect(slot(this, &ControlBibitem::showInset));
 }
 
+
 void ControlBibitem::applyParamsToInset()
 {
        // FIXME:
@@ -49,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();
 }