Fixing bug where the list item count wasn't decremented when an item was removed
This commit is contained in:
parent
78e6f40cac
commit
238e19d77f
2 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
|
|
||||||
*** Changes after 2.5 ***
|
*** Changes after 2.5 ***
|
||||||
|
FIX: Fixing bug where the list item count wasn't decremented when an item was removed
|
||||||
|
|
||||||
|
|
||||||
*** Release 2.5 ***
|
*** Release 2.5 ***
|
||||||
|
|
|
@ -485,6 +485,7 @@ void gwinListItemDelete(GHandle gh, int item) {
|
||||||
if (i == item) {
|
if (i == item) {
|
||||||
gfxQueueASyncRemove(&gh2obj->list_head, (gfxQueueASyncItem*)qi);
|
gfxQueueASyncRemove(&gh2obj->list_head, (gfxQueueASyncItem*)qi);
|
||||||
gfxFree((void *)qi);
|
gfxFree((void *)qi);
|
||||||
|
gh2obj->cnt--;
|
||||||
if (gh2obj->top >= item && gh2obj->top)
|
if (gh2obj->top >= item && gh2obj->top)
|
||||||
gh2obj->top--;
|
gh2obj->top--;
|
||||||
_gwinUpdate(gh);
|
_gwinUpdate(gh);
|
||||||
|
|
Loading…
Add table
Reference in a new issue