Don't enter the inset if we came from a row above and are one row over

the inset (#262).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4032 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-04-19 11:06:09 +00:00
parent 0b0238d904
commit 3e12056da2
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2002-04-19 Juergen Vigna <jug@sad.it>
* text2.C (cursorDown): don't enter the inset if we came from a row
above and are one row over the inset.
* lyxfunc.C (dispatch): update paragraph layout after LFUN_ESCAPE when
really leaving an inset.

View File

@ -2351,7 +2351,7 @@ void LyXText::cursorDown(BufferView * bview, bool selecting) const
int y = cursor.y() - cursor.row()->baseline() +
cursor.row()->height() + 1;
setCursorFromCoordinates(bview, x, y);
if (!selecting) {
if (!selecting && cursor.row() == cursor.irow()) {
int y1 = cursor.iy() - first_y;
int y2 = y1;
y -= first_y;