From 4e2a7f6e81710c7c68b8576f9cc16d33680186d0 Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Thu, 20 Nov 2003 17:10:54 +0000 Subject: [PATCH] small fix to today's commit git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8110 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 5 +++++ src/text2.C | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 62b6286984..6f2bad6d21 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-11-20 Alfredo Braunstein + + * text2.C (cursorUp, cursorDown): small fix (insettext::edit takes + screen coordinates) + 2003-11-20 Alfredo Braunstein * lyxtext.h: add x0_, y0_ diff --git a/src/text2.C b/src/text2.C index 9c1bb6ac5d..e7ee7adf0d 100644 --- a/src/text2.C +++ b/src/text2.C @@ -1718,7 +1718,7 @@ void LyXText::cursorUp(bool selecting) lyxerr << "y:" << y << " y0: " << y0_ << endl; InsetOld * inset_hit = checkInsetHit(bv()->x_target(), y); if (inset_hit && isHighlyEditableInset(inset_hit)) - inset_hit->edit(bv(), x, y); + inset_hit->edit(bv(), bv()->x_target(), y); } } @@ -1734,7 +1734,7 @@ void LyXText::cursorDown(bool selecting) y += y0_ - bv()->top_y(); InsetOld * inset_hit = checkInsetHit(bv()->x_target(), y); if (inset_hit && isHighlyEditableInset(inset_hit)) - inset_hit->edit(bv(), x, y); + inset_hit->edit(bv(), bv()->x_target(), y); } }