From fcb82ea793ba0574973a989064ecf65fa5c772b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Sat, 26 Jul 2003 20:38:19 +0000 Subject: [PATCH] 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 --- src/text3.C | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/text3.C b/src/text3.C index 9907cfe9fa..7ae6c2bafb 100644 --- a/src/text3.C +++ b/src/text3.C @@ -250,7 +250,7 @@ void LyXText::cursorPrevious() if (cursorRow() == rows().begin()) { if (y > 0) { 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(); } return; @@ -285,7 +285,7 @@ void LyXText::cursorPrevious() - 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()) { LyXCursor cur; setCursor(cur, boost::prior(cursorRow())->par(), @@ -306,7 +306,7 @@ void LyXText::cursorNext() int y = cursor.y() - cursorRow()->baseline() + cursorRow()->height(); 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(); } return; @@ -346,7 +346,7 @@ void LyXText::cursorNext() 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()); if (next_row != rows().end()) {