]> git.lyx.org Git - features.git/commitdiff
Fix next-inset-toggle after scrolling work.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 27 Dec 2007 09:44:39 +0000 (09:44 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 27 Dec 2007 09:44:39 +0000 (09:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22321 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index abaa00fca0cf16a75e03ccad9aa433e26320d72b..d14406f55dcdf2c73861ac9cebd81ea8907f9da0 100644 (file)
@@ -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;
        }