mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
Fix assertion when using paragraph-up/down. This code was wrongly erased in revision 19040.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19069 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c3d9485c5a
commit
1f70aa50d4
@ -377,6 +377,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
||||
std::swap(pars_[pit], pars_[pit + 1]);
|
||||
updateLabels(cur.buffer());
|
||||
needsUpdate = true;
|
||||
++cur.pit();
|
||||
break;
|
||||
}
|
||||
|
||||
@ -386,6 +387,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
||||
finishUndo();
|
||||
std::swap(pars_[pit], pars_[pit - 1]);
|
||||
updateLabels(cur.buffer());
|
||||
--cur.pit();
|
||||
needsUpdate = true;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user