From f13b5fb356e63ce5001f75482eb7bb62afb068e6 Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Wed, 17 Mar 2004 19:08:16 +0000 Subject: [PATCH] tiny fix (current font was not set) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8496 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 3 +++ src/text2.C | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) 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); }