Fixing bug where the list item count wasn't decremented when an item was removed

This commit is contained in:
Joel Bodenmann 2016-05-21 17:39:38 +02:00
parent 78e6f40cac
commit 238e19d77f
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
*****************************************************************************
*** Changes after 2.5 ***
FIX: Fixing bug where the list item count wasn't decremented when an item was removed
*** Release 2.5 ***

View File

@ -485,6 +485,7 @@ void gwinListItemDelete(GHandle gh, int item) {
if (i == item) {
gfxQueueASyncRemove(&gh2obj->list_head, (gfxQueueASyncItem*)qi);
gfxFree((void *)qi);
gh2obj->cnt--;
if (gh2obj->top >= item && gh2obj->top)
gh2obj->top--;
_gwinUpdate(gh);