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
This commit is contained in:
John Levon 2003-03-19 15:04:23 +00:00
parent ce5979004b
commit 893114ea1a

View File

@ -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());