From 735ac5cb6596ac7219881a8be1b215825de9401b Mon Sep 17 00:00:00 2001 From: Dmitri Pal Date: Mon, 13 Jul 2009 19:35:31 -0400 Subject: ELAPI First part of the interface This is just a part of the interface, a beginning. Most likely some of the functions will be altered but it is a starting point. For example in future there will be a way to override some of the parts of the default template using the application configuration file. Removed obfuscation of the data types based on discussion with Simo. --- common/collection/collection.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/collection/collection.c') diff --git a/common/collection/collection.c b/common/collection/collection.c index 1e3fe5c3f..69475b048 100644 --- a/common/collection/collection.c +++ b/common/collection/collection.c @@ -384,6 +384,7 @@ int col_insert_item_into_current(struct collection_item *collection, current = parent->next; item->next = current->next; parent->next = item; + if (header->last == current) header->last = item; col_delete_item(current); header->count--; TRACE_FLOW_STRING("col_insert_item_into_current", "Dup overwrite exit"); @@ -397,6 +398,7 @@ int col_insert_item_into_current(struct collection_item *collection, current = parent->next; item->next = current->next; parent->next = item; + if (header->last == current) header->last = item; col_delete_item(current); header->count--; TRACE_FLOW_STRING("col_insert_item_into_current", "Dup overwrite exit"); -- cgit