From: Jürgen Vigna Date: Wed, 8 Jan 2003 09:27:15 +0000 (+0000) Subject: Fixed down movement inside inset text (hopefully). X-Git-Tag: 1.6.10~17718 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8ed3c535961d74f2dd6123e0ccaebb4c65914c06;p=features.git Fixed down movement inside inset text (hopefully). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5917 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 188b55b163..5ffd9c5dfe 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2002-12-17 Juergen Vigna + + * insettext.C (localDispatch): hopefully fixed cursor up down + movement on leaving other insets. + 2003-01-06 Michael Schmitt * insettext.C: fix inconsistent usage of spaces, colons, capitalization, diff --git a/src/insets/insettext.C b/src/insets/insettext.C index f42a017ae5..6bca675ce8 100644 --- a/src/insets/insettext.C +++ b/src/insets/insettext.C @@ -1223,20 +1223,10 @@ Inset::RESULT InsetText::localDispatch(FuncRequest const & ev) } break; case FINISHED_DOWN: - { - LyXText *lt = getLyXText(bv); - if (lt->cursor.irow()->next()) { - lt->setCursorFromCoordinates( - bv, lt->cursor.ix() + inset_x, - lt->cursor.iy() - - lt->cursor.irow()->baseline() + - lt->cursor.irow()->height() + 1); - lt->cursor.x_fix(lt->cursor.x()); + if ((result = moveDown(bv)) >= FINISHED) { updateLocal(bv, CURSOR, false); - } else { bv->unlockInset(this); } - } break; default: result = DISPATCHED;