From 1045951369a31629eede6d2d1c00bd9a6a4f2ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Vigna?= Date: Mon, 11 Mar 2002 14:33:52 +0000 Subject: [PATCH] Fixed cursorPrevious for insettext (fix #60). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3709 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView_pimpl.C | 3 +-- src/ChangeLog | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index e7f22b1699..2c5898fa4d 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -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 diff --git a/src/ChangeLog b/src/ChangeLog index 3371aead3a..a4ed6faf4b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-03-11 Juergen Vigna + + * BufferView_pimpl.C (cursorPrevious): remove old cruft which is + plainly wrong. + 2002-03-08 Angus Leeming * commandtags.h: