]> git.lyx.org Git - features.git/commitdiff
Fixed cursorPrevious for insettext (fix #60).
authorJürgen Vigna <jug@sad.it>
Mon, 11 Mar 2002 14:33:52 +0000 (14:33 +0000)
committerJürgen Vigna <jug@sad.it>
Mon, 11 Mar 2002 14:33:52 +0000 (14:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3709 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView_pimpl.C
src/ChangeLog

index e7f22b169954cff63e0ac82d99e2909e44219bc3..2c5898fa4db131e386f4b8717b766735dc330965 100644 (file)
@@ -1145,9 +1145,8 @@ void BufferView::Pimpl::cursorPrevious(LyXText * text)
                return;
        
        int y = text->first_y;
-       if (text->inset_owner)
-               y += bv_->text->first_y;
        Row * cursorrow = text->cursor.row();
+       
        text->setCursorFromCoordinates(bv_, bv_->text->cursor.x_fix(), y);
        finishUndo();
        // This is to allow jumping over large insets
index 3371aead3a213be2b706305780340fdf148886da..a4ed6faf4bce5d6a3b27d224c987bea03be135c1 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-11  Juergen Vigna  <jug@sad.it>
+
+       * BufferView_pimpl.C (cursorPrevious): remove old cruft which is
+       plainly wrong.
+
 2002-03-08  Angus Leeming  <a.leeming@ic.ac.uk>
 
        * commandtags.h: