tiny fix (current font was not set)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8496 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2004-03-17 19:08:16 +00:00
parent 39bccdb268
commit f13b5fb356
2 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,6 @@
2004-03-17 Alfredo Braunstein <abraunst@lyx.org>
* text2.C (setCursorFromCoordinates): fix font problem
2004-03-17 Alfredo Braunstein <abraunst@lyx.org>

View File

@ -1294,10 +1294,7 @@ void LyXText::setCursorFromCoordinates(LCursor & cur, int x, int y)
bool bound = false;
int xx = x + xo_; // getRowNearX get absolute x coords
pos_type const pos = row.pos() + getColumnNearX(pit, row, xx, bound);
cur.par() = parOffset(pit);
cur.pos() = pos;
cur.boundary() = bound;
deleteEmptyParagraphMechanism(cur.top(), old_cursor);
setCursor(cur, parOffset(pit), pos, true, bound);
}