mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
* text3.C:void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
For LFUN_PARAGRAPH_MOVE_DOWN and LFUN_PARAGRAPH_MOVE_UP call: void updateLabels(Buffer const & buf, ParIterator & from, ParIterator & to) instead of: void updateLabels(Buffer const & buf, ParIterator & iter) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13775 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ff83a99e94
commit
17f05af743
14
src/text3.C
14
src/text3.C
@ -327,10 +327,11 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
recUndo(pit, pit + 1);
|
recUndo(pit, pit + 1);
|
||||||
finishUndo();
|
finishUndo();
|
||||||
std::swap(pars_[pit], pars_[pit + 1]);
|
std::swap(pars_[pit], pars_[pit + 1]);
|
||||||
++cur.pit();
|
|
||||||
|
|
||||||
ParIterator parit(cur);
|
ParIterator begin(cur);
|
||||||
updateLabels(cur.buffer(), parit);
|
++cur.pit();
|
||||||
|
ParIterator end = boost::next(cur);
|
||||||
|
updateLabels(cur.buffer(), begin, end);
|
||||||
|
|
||||||
needsUpdate = true;
|
needsUpdate = true;
|
||||||
break;
|
break;
|
||||||
@ -341,10 +342,11 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
recUndo(pit - 1, pit);
|
recUndo(pit - 1, pit);
|
||||||
finishUndo();
|
finishUndo();
|
||||||
std::swap(pars_[pit], pars_[pit - 1]);
|
std::swap(pars_[pit], pars_[pit - 1]);
|
||||||
--cur.pit();
|
|
||||||
|
|
||||||
ParIterator parit(cur);
|
ParIterator end = boost::next(cur);
|
||||||
updateLabels(cur.buffer(), parit);
|
--cur.pit();
|
||||||
|
ParIterator begin(cur);
|
||||||
|
updateLabels(cur.buffer(), begin, end);
|
||||||
|
|
||||||
needsUpdate = true;
|
needsUpdate = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user