small fix to today's commit

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8110 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2003-11-20 17:10:54 +00:00
parent 022387eb1d
commit 4e2a7f6e81
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-11-20 Alfredo Braunstein <abraunst@lyx.org>
* text2.C (cursorUp, cursorDown): small fix (insettext::edit takes
screen coordinates)
2003-11-20 Alfredo Braunstein <abraunst@lyx.org> 2003-11-20 Alfredo Braunstein <abraunst@lyx.org>
* lyxtext.h: add x0_, y0_ * lyxtext.h: add x0_, y0_

View File

@ -1718,7 +1718,7 @@ void LyXText::cursorUp(bool selecting)
lyxerr << "y:" << y << " y0: " << y0_ << endl; lyxerr << "y:" << y << " y0: " << y0_ << endl;
InsetOld * inset_hit = checkInsetHit(bv()->x_target(), y); InsetOld * inset_hit = checkInsetHit(bv()->x_target(), y);
if (inset_hit && isHighlyEditableInset(inset_hit)) 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(); y += y0_ - bv()->top_y();
InsetOld * inset_hit = checkInsetHit(bv()->x_target(), y); InsetOld * inset_hit = checkInsetHit(bv()->x_target(), y);
if (inset_hit && isHighlyEditableInset(inset_hit)) if (inset_hit && isHighlyEditableInset(inset_hit))
inset_hit->edit(bv(), x, y); inset_hit->edit(bv(), bv()->x_target(), y);
} }
} }