parent
33ac47279b
commit
0d898379a7
@ -180,6 +180,8 @@ public:
|
|||||||
*new_list.last=current->next;
|
*new_list.last=current->next;
|
||||||
current->info=new_list.first->info;
|
current->info=new_list.first->info;
|
||||||
current->next=new_list.first->next;
|
current->next=new_list.first->next;
|
||||||
|
if ((list->last == ¤t->next) && (new_list.elements > 1))
|
||||||
|
list->last= new_list.last;
|
||||||
list->elements+=new_list.elements-1;
|
list->elements+=new_list.elements-1;
|
||||||
}
|
}
|
||||||
return ret_value; // return old element
|
return ret_value; // return old element
|
||||||
|
Loading…
x
Reference in New Issue
Block a user