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:
Abdelrazak Younes 2007-07-13 16:12:44 +00:00
parent c3d9485c5a
commit 1f70aa50d4

View File

@ -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;
}