From 361a97b070b30421761afaa0152aaffd3c176759 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 20 Dec 2006 14:17:50 +0000 Subject: [PATCH] Fix bug 3024 (http://bugzilla.lyx.org/show_bug.cgi?id=3024). The use of top-level lyx::dispatch() ensure that the CoordCache is OK at each step. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16348 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text3.C | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/text3.C b/src/text3.C index f7d9a8806d..83150ec5f1 100644 --- a/src/text3.C +++ b/src/text3.C @@ -1028,15 +1028,15 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd) setCursorFromCoordinates(cur, cmd.x, y); cur.x_target() = cmd.x; if (cmd.y >= wh) - cursorDown(cur); + lyx::dispatch(FuncRequest(LFUN_DOWN_SELECT)); else if (cmd.y < 0) - cursorUp(cur); + lyx::dispatch(FuncRequest(LFUN_UP_SELECT)); // This is to allow jumping over large insets if (cur.top() == old) { if (cmd.y >= wh) - cursorDown(cur); + lyx::dispatch(FuncRequest(LFUN_DOWN_SELECT)); else if (cmd.y < 0) - cursorUp(cur); + lyx::dispatch(FuncRequest(LFUN_UP_SELECT)); } if (cur.top() == old) -- 2.39.5