mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
remove spurious extra drawing from cursorNext() and cursorPrevious()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7368 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
78ba1836ad
commit
fcb82ea793
@ -250,7 +250,7 @@ void LyXText::cursorPrevious()
|
|||||||
if (cursorRow() == rows().begin()) {
|
if (cursorRow() == rows().begin()) {
|
||||||
if (y > 0) {
|
if (y > 0) {
|
||||||
int new_y = bv()->text->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();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@ -285,7 +285,7 @@ void LyXText::cursorPrevious()
|
|||||||
- bv()->workHeight() + 1;
|
- bv()->workHeight() + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bv()->screen().draw(bv()->text, bv(), new_y < 0 ? 0 : new_y);
|
//bv()->screen().draw(bv()->text, bv(), new_y < 0 ? 0 : new_y);
|
||||||
if (cursorRow() != rows().begin()) {
|
if (cursorRow() != rows().begin()) {
|
||||||
LyXCursor cur;
|
LyXCursor cur;
|
||||||
setCursor(cur, boost::prior(cursorRow())->par(),
|
setCursor(cur, boost::prior(cursorRow())->par(),
|
||||||
@ -306,7 +306,7 @@ void LyXText::cursorNext()
|
|||||||
int y = cursor.y() - cursorRow()->baseline() +
|
int y = cursor.y() - cursorRow()->baseline() +
|
||||||
cursorRow()->height();
|
cursorRow()->height();
|
||||||
if (y > topy + bv()->workHeight()) {
|
if (y > topy + bv()->workHeight()) {
|
||||||
bv()->screen().draw(bv()->text, bv(), bv()->text->top_y() + bv()->workHeight());
|
//bv()->screen().draw(bv()->text, bv(), bv()->text->top_y() + bv()->workHeight());
|
||||||
bv()->updateScrollbar();
|
bv()->updateScrollbar();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@ -346,7 +346,7 @@ void LyXText::cursorNext()
|
|||||||
new_y = cursor.y() - cursorRow()->baseline();
|
new_y = cursor.y() - cursorRow()->baseline();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bv()->screen().draw(bv()->text, bv(), new_y);
|
//bv()->screen().draw(bv()->text, bv(), new_y);
|
||||||
|
|
||||||
RowList::iterator next_row = boost::next(cursorRow());
|
RowList::iterator next_row = boost::next(cursorRow());
|
||||||
if (next_row != rows().end()) {
|
if (next_row != rows().end()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user