From 1827aeda46786f320633ebf593773b5103750d6e Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 8 Mar 2009 21:23:31 +0000 Subject: [PATCH] Fix scrolling regression (http://www.lyx.org/trac/changeset/28397). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28730 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 40596dd4f4..3b31fd5b5f 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -832,7 +832,7 @@ void BufferView::showCursor(DocIterator const & dit) if (ypos - row_dim.ascent() < 0) scrolled = scrollUp(- ypos + row_dim.ascent()); else if (ypos + row_dim.descent() > height_) - scrolled = scrollDown(ypos - defaultRowHeight()); + scrolled = scrollDown(ypos - height_ + defaultRowHeight() ); // else, nothing to do, the cursor is already visible so we just return. if (scrolled != 0) { -- 2.39.2