]> git.lyx.org Git - features.git/commitdiff
Fixed down movement inside inset text (hopefully).
authorJürgen Vigna <jug@sad.it>
Wed, 8 Jan 2003 09:27:15 +0000 (09:27 +0000)
committerJürgen Vigna <jug@sad.it>
Wed, 8 Jan 2003 09:27:15 +0000 (09:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5917 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insettext.C

index 188b55b163be94c6e27645606b8901ccf32a6959..5ffd9c5dfe3dd1df3108b5ac96972009f2c5bfeb 100644 (file)
@@ -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,
index f42a017ae510a21f490d70894654f6371cd16257..6bca675ce8e9f168e04583394603d6e08caffc09 100644 (file)
@@ -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;