mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-14 06:57:01 +00:00
Alfredo's correction
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6375 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e22ee4208d
commit
a5fe7ae80e
@ -242,7 +242,7 @@ void LyXText::cursorPrevious(BufferView * bv)
|
|||||||
{
|
{
|
||||||
if (!cursor.row()->previous()) {
|
if (!cursor.row()->previous()) {
|
||||||
if (top_y() > 0) {
|
if (top_y() > 0) {
|
||||||
int new_y = top_y() - bv->workHeight();
|
int new_y = bv->text->top_y() - bv->workHeight();
|
||||||
bv->screen().draw(bv->text, bv, new_y < 0 ? 0 : new_y);
|
bv->screen().draw(bv->text, bv, new_y < 0 ? 0 : new_y);
|
||||||
bv->updateScrollbar();
|
bv->updateScrollbar();
|
||||||
}
|
}
|
||||||
@ -298,7 +298,7 @@ void LyXText::cursorNext(BufferView * bv)
|
|||||||
int y = cursor.y() - cursor.row()->baseline() +
|
int y = cursor.y() - cursor.row()->baseline() +
|
||||||
cursor.row()->height();
|
cursor.row()->height();
|
||||||
if (y > top_y() + bv->workHeight()) {
|
if (y > top_y() + bv->workHeight()) {
|
||||||
bv->screen().draw(bv->text, bv, top_y() + bv->workHeight());
|
bv->screen().draw(bv->text, bv, bv->text->top_y() + bv->workHeight());
|
||||||
bv->updateScrollbar();
|
bv->updateScrollbar();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user