Fixing bug where the list item count wasn't decremented when an item was removed
This commit is contained in:
parent
78e6f40cac
commit
238e19d77f
@ -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 ***
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user