From 893114ea1a33358eb833513f92fa6c85d80c534e Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 19 Mar 2003 15:04:23 +0000 Subject: [PATCH] seems somebody made changes in the wrong tree ... git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6539 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 fb2c66dfc2..6e9ed0883d 100644 --- a/src/text3.C +++ b/src/text3.C @@ -293,20 +293,20 @@ void LyXText::cursorPrevious() void LyXText::cursorNext() { - int top_y = top_y(); + int topy = top_y(); if (!cursor.row()->next()) { int y = cursor.y() - cursor.row()->baseline() + cursor.row()->height(); - if (y > top_y + bv()->workHeight()) { + if (y > topy + bv()->workHeight()) { bv()->screen().draw(bv()->text, bv(), bv()->text->top_y() + bv()->workHeight()); bv()->updateScrollbar(); } return; } - int y = top_y + bv()->workHeight(); - if (inset_owner && !top_y) { + int y = topy + bv()->workHeight(); + if (inset_owner && !topy) { y -= (bv()->text->cursor.iy() - bv()->text->top_y() + bv()->theLockingInset()->insetInInsetY());