mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
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
This commit is contained in:
parent
c4f0fb88f1
commit
1827aeda46
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user