summaryrefslogtreecommitdiffstats
path: root/collection
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2009-07-13 19:35:31 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-07-15 11:19:46 -0400
commit51b3a661529f8e3fd5ada94b95d4ba393e339dd8 (patch)
treee96497349d5740445adfe57648469146b5256c4c /collection
parent18871cab92aef80bd4a856454a77f8808984dbce (diff)
downloadding-libs2-51b3a661529f8e3fd5ada94b95d4ba393e339dd8.tar.gz
ding-libs2-51b3a661529f8e3fd5ada94b95d4ba393e339dd8.tar.xz
ding-libs2-51b3a661529f8e3fd5ada94b95d4ba393e339dd8.zip
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.
Diffstat (limited to 'collection')
-rw-r--r--collection/collection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/collection/collection.c b/collection/collection.c
index 1e3fe5c..69475b0 100644
--- a/collection/collection.c
+++ b/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");