* 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:
Abdelrazak Younes 2006-04-28 13:02:05 +00:00
parent ff83a99e94
commit 17f05af743

View File

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