]> git.lyx.org Git - features.git/commitdiff
Fix assertion when using paragraph-up/down. This code was wrongly erased in revision...
authorAbdelrazak Younes <younes@lyx.org>
Fri, 13 Jul 2007 16:12:44 +0000 (16:12 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 13 Jul 2007 16:12:44 +0000 (16:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19069 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index 13a8d72f29dd4f2194dd42cbcbb5687e27e6bc4e..5ec6a6051b67a85839b8016f713a9e67efdc680e 100644 (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;
        }