diff options
author | Joel Bodenmann <joel@embedded.pro> | 2016-05-21 17:39:38 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@embedded.pro> | 2016-05-21 17:39:38 +0200 |
commit | 238e19d77f2c8add083e8b5582664881f621c016 (patch) | |
tree | 92c753e9735a7b71ffd870da9dd27fbff78f4f82 /src | |
parent | 78e6f40cac12423f964d71dd91cd46ed46b6106d (diff) | |
download | uGFX-238e19d77f2c8add083e8b5582664881f621c016.tar.gz uGFX-238e19d77f2c8add083e8b5582664881f621c016.tar.bz2 uGFX-238e19d77f2c8add083e8b5582664881f621c016.zip |
Fixing bug where the list item count wasn't decremented when an item was removed
Diffstat (limited to 'src')
-rw-r--r-- | src/gwin/gwin_list.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gwin/gwin_list.c b/src/gwin/gwin_list.c index f0bd7362..494d2de9 100644 --- a/src/gwin/gwin_list.c +++ b/src/gwin/gwin_list.c @@ -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); |