user32: Invalidate a being removed listbox item before deleting it as it's been done before d2ecb11941
.
This commit is contained in:
parent
f83b299bd2
commit
c293a535c0
|
@ -1725,14 +1725,14 @@ static LRESULT LISTBOX_RemoveItem( LB_DESCR *descr, INT index )
|
|||
|
||||
if ((index < 0) || (index >= descr->nb_items)) return LB_ERR;
|
||||
|
||||
/* We need to invalidate the original rect instead of the updated one. */
|
||||
LISTBOX_InvalidateItems( descr, index );
|
||||
|
||||
descr->nb_items--;
|
||||
LISTBOX_DeleteItem( descr, index );
|
||||
|
||||
if (!descr->nb_items) return LB_OKAY;
|
||||
|
||||
/* We need to invalidate the original rect instead of the updated one. */
|
||||
LISTBOX_InvalidateItems( descr, index );
|
||||
|
||||
/* Remove the item */
|
||||
|
||||
item = &descr->items[index];
|
||||
|
|
Loading…
Reference in New Issue