mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-25 09:35:39 +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_);
|
cursorPosBeforeDispatchY_);
|
||||||
view()->cursor().dispatch(cmd);
|
view()->cursor().dispatch(cmd);
|
||||||
updateFlags = view()->cursor().result().update();
|
updateFlags = view()->cursor().result().update();
|
||||||
// Verify that the action has been dispatched.
|
if (!view()->cursor().result().dispatched()) {
|
||||||
BOOST_ASSERT(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()) {
|
if (lyx_view_ && lyx_view_->buffer()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user