mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
bug fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22228 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
96d2d6fc50
commit
ddda272512
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user