]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView2.C
fix typo that put too many include paths for most people
[lyx.git] / src / BufferView2.C
index da33665c2797885bfbff2d4212e47fc0091ec5f3..fa9456ea50788a105b496d7242557021762e5155 100644 (file)
@@ -587,13 +587,16 @@ void BufferView::hideLockedInsetCursor()
 }
 
 
-void BufferView::fitLockedInsetCursor(int x, int y, int asc, int desc)
+bool BufferView::fitLockedInsetCursor(int x, int y, int asc, int desc)
 {
        if (theLockingInset() && available()) {
                y += text->cursor.y() + theLockingInset()->insetInInsetY();
-               if (pimpl_->screen_->fitManualCursor(text, this, x, y, asc, desc))
+               if (pimpl_->screen_->fitManualCursor(text, this, x, y, asc, desc)) {
                        updateScrollbar();
+                       return true;
+               }
        }
+       return false;
 }