From 17f05af74315814e0d298f752a8090c411db4b12 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 28 Apr 2006 13:02:05 +0000 Subject: [PATCH] * 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 --- src/text3.C | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/text3.C b/src/text3.C index b1c2782e59..a666295ad0 100644 --- a/src/text3.C +++ b/src/text3.C @@ -327,10 +327,11 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd) recUndo(pit, pit + 1); finishUndo(); std::swap(pars_[pit], pars_[pit + 1]); - ++cur.pit(); - ParIterator parit(cur); - updateLabels(cur.buffer(), parit); + ParIterator begin(cur); + ++cur.pit(); + ParIterator end = boost::next(cur); + updateLabels(cur.buffer(), begin, end); needsUpdate = true; break; @@ -341,10 +342,11 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd) recUndo(pit - 1, pit); finishUndo(); std::swap(pars_[pit], pars_[pit - 1]); - --cur.pit(); - ParIterator parit(cur); - updateLabels(cur.buffer(), parit); + ParIterator end = boost::next(cur); + --cur.pit(); + ParIterator begin(cur); + updateLabels(cur.buffer(), begin, end); needsUpdate = true; break; -- 2.39.2