bitmap.c (bitmap_element_free): Don't forget to update head->indx when we update head->current.
2001-10-30 Daniel Berlin <dan@cgsoftware.com> * bitmap.c (bitmap_element_free): Don't forget to update head->indx when we update head->current. From-SVN: r46669
This commit is contained in:
parent
ec3fd6be49
commit
87a2e7a8a5
@ -1,3 +1,8 @@
|
||||
2001-10-30 Daniel Berlin <dan@cgsoftware.com>
|
||||
|
||||
* bitmap.c (bitmap_element_free): Don't forget to update head->indx
|
||||
when we update head->current.
|
||||
|
||||
2001-10-30 Neil Booth <neil@daikokuya.demon.co.uk>
|
||||
|
||||
* tree.c (id_string_size): Remove.
|
||||
|
@ -70,7 +70,11 @@ bitmap_element_free (head, elt)
|
||||
/* Since the first thing we try is to insert before current,
|
||||
make current the next entry in preference to the previous. */
|
||||
if (head->current == elt)
|
||||
head->current = next != 0 ? next : prev;
|
||||
{
|
||||
head->current = next != 0 ? next : prev;
|
||||
if (head->current)
|
||||
head->indx = head->current->indx;
|
||||
}
|
||||
|
||||
elt->next = bitmap_free;
|
||||
bitmap_free = elt;
|
||||
|
Loading…
Reference in New Issue
Block a user