diff --git a/src/ChangeLog b/src/ChangeLog index 5d46b4380c..6855488417 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,6 @@ +2004-03-17 Alfredo Braunstein + + * text2.C (setCursorFromCoordinates): fix font problem 2004-03-17 Alfredo Braunstein diff --git a/src/text2.C b/src/text2.C index 50169bc3b8..f8ebd65b65 100644 --- a/src/text2.C +++ b/src/text2.C @@ -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); }