Commit a671f80f authored by hf@deer.mysql.r18.ru's avatar hf@deer.mysql.r18.ru

fix for bug #212

parent f841b4ae
...@@ -180,6 +180,8 @@ class base_list_iterator ...@@ -180,6 +180,8 @@ class base_list_iterator
*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 == &current->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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment