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); } }