]> git.lyx.org Git - features.git/commitdiff
bug fix
authorAbdelrazak Younes <younes@lyx.org>
Fri, 21 Dec 2007 11:22:17 +0000 (11:22 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 21 Dec 2007 11:22:17 +0000 (11:22 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22228 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp

index bc3bd66ea3a10b769f4109450fc3376021af797e..dfde956fb6230b25ee2549b0119bd02764c21153 100644 (file)
@@ -1772,8 +1772,11 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                                                cursorPosBeforeDispatchY_);
                        view()->cursor().dispatch(cmd);
                        updateFlags = view()->cursor().result().update();
-                       // Verify that the action has been dispatched.
-                       BOOST_ASSERT(view()->cursor().result().dispatched());
+                       if (!view()->cursor().result().dispatched()) {
+                               // No update needed in this case (e.g. when reaching
+                               // top of document.
+                               updateFlags = Update::None;
+                       }
                }
 
                if (lyx_view_ && lyx_view_->buffer()) {