mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
robustify splice a bit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6915 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7a012d8134
commit
96885e74d7
@ -1,6 +1,11 @@
|
||||
2003-05-02 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||
|
||||
* ParagraphList.C (splice): just return if pl is empty.
|
||||
|
||||
2003-05-02 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||
|
||||
* ParagraphList.C (splice): new function.
|
||||
|
||||
* CutAndPaste.C (pasteSelection): use it
|
||||
|
||||
2003-05-01 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||
|
@ -178,6 +178,9 @@ void ParagraphList::assign(iterator beg, iterator end)
|
||||
|
||||
void ParagraphList::splice(iterator pos, ParagraphList & pl)
|
||||
{
|
||||
if (pl.parlist == 0)
|
||||
return;
|
||||
|
||||
Paragraph * first = pl.parlist;
|
||||
Paragraph * last = first;
|
||||
#ifndef NO_NEXT
|
||||
|
Loading…
Reference in New Issue
Block a user