mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 22:41:09 +00:00
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:
parent
ce5979004b
commit
893114ea1a
@ -293,20 +293,20 @@ void LyXText::cursorPrevious()
|
|||||||
|
|
||||||
void LyXText::cursorNext()
|
void LyXText::cursorNext()
|
||||||
{
|
{
|
||||||
int top_y = top_y();
|
int topy = top_y();
|
||||||
|
|
||||||
if (!cursor.row()->next()) {
|
if (!cursor.row()->next()) {
|
||||||
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 > 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
int y = top_y + bv()->workHeight();
|
int y = topy + bv()->workHeight();
|
||||||
if (inset_owner && !top_y) {
|
if (inset_owner && !topy) {
|
||||||
y -= (bv()->text->cursor.iy()
|
y -= (bv()->text->cursor.iy()
|
||||||
- bv()->text->top_y()
|
- bv()->text->top_y()
|
||||||
+ bv()->theLockingInset()->insetInInsetY());
|
+ bv()->theLockingInset()->insetInInsetY());
|
||||||
|
Loading…
Reference in New Issue
Block a user