fix a bug in ParagraphList

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6581 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-03-26 10:59:22 +00:00
parent 2e10f5a46b
commit a6c7b5bc14
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-03-26 Lars Gullik Bjønnes <larsbj@gullik.net>
* ParagraphList.C (erase): handle the case where it == begin
correctly.
2003-03-25 John Levon <levon@movementarian.org>
* Makefile.am:
@ -47,7 +52,7 @@
2003-03-22 John Levon <levon@movementarian.org>
* BufferView_pimpl.C:
* lyxtext.h:
* lyxtext.h:
* rowpainter.C:
* rowpainter.h:
* text.C:

View File

@ -125,6 +125,9 @@ void ParagraphList::erase(ParagraphList::iterator it)
if (prev)
prev->next(next);
else
parlist = next;
if (next)
next->previous(prev);