X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView2.C;h=fa9456ea50788a105b496d7242557021762e5155;hb=98c966c64594611e469313314abd1e59524adb4a;hp=da33665c2797885bfbff2d4212e47fc0091ec5f3;hpb=8283e978f8d621041c432b9b88a476bfd567385c;p=lyx.git diff --git a/src/BufferView2.C b/src/BufferView2.C index da33665c27..fa9456ea50 100644 --- a/src/BufferView2.C +++ b/src/BufferView2.C @@ -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; }