]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
Move #includes out of header files.
[lyx.git] / src / BufferView.C
index 9fe4f9726ee98da96df918f27f42997b4ea97b45..81a59e3e05287a710b40764058b3c0eabcdb31a5 100644 (file)
@@ -25,6 +25,7 @@
 #include "debug.h"
 #include "gettext.h"
 #include "errorlist.h"
+#include "funcrequest.h"
 #include "iterators.h"
 #include "language.h"
 #include "lyxcursor.h"
@@ -479,7 +480,7 @@ bool BufferView::lockInset(UpdatableInset * inset)
 bool BufferView::fitLockedInsetCursor(int x, int y, int asc, int desc)
 {
        if (theLockingInset() && available()) {
-               y += text->cursor.iy() + theLockingInset()->insetInInsetY();
+               y += text->cursor.y() + theLockingInset()->insetInInsetY();
                if (screen().fitManualCursor(this, text, x, y, asc, desc)) {
                        updateScrollbar();
                        return true;