git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22228 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-12-21 11:22:17 +00:00
parent 96d2d6fc50
commit ddda272512

View 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()) {