From: Abdelrazak Younes Date: Thu, 27 Dec 2007 09:44:39 +0000 (+0000) Subject: Fix next-inset-toggle after scrolling work. X-Git-Tag: 1.6.10~6789 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f3326796a1c9d3a3b118c36afcda24fb07f15b6d;p=features.git Fix next-inset-toggle after scrolling work. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22321 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index abaa00fca0..d14406f55d 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1194,9 +1194,11 @@ bool BufferView::dispatch(FuncRequest const & cmd) if (!cur.result().dispatched()) cur.dispatch(tmpcmd); - if (cur.result().dispatched()) - cur.clearSelection(); - + if (!cur.result().dispatched()) + // It did not work too; no action needed. + break; + cur.clearSelection(); + processUpdateFlags(Update::SinglePar | Update::FitCursor); break; }