mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fixed down movement inside inset text (hopefully).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5917 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fda29b370a
commit
8ed3c53596
@ -1,3 +1,8 @@
|
||||
2002-12-17 Juergen Vigna <jug@lyx.org>
|
||||
|
||||
* insettext.C (localDispatch): hopefully fixed cursor up down
|
||||
movement on leaving other insets.
|
||||
|
||||
2003-01-06 Michael Schmitt <Michael.Schmitt@teststep.org>
|
||||
|
||||
* insettext.C: fix inconsistent usage of spaces, colons, capitalization,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user