mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 05:48:01 +01:00
fixed bug in repainting empty popup buttons
This commit is contained in:
@@ -301,6 +301,9 @@ WMGetPopUpButtonItem(WMPopUpButton *bPtr, int index)
|
||||
{
|
||||
WMMenuItem *item;
|
||||
|
||||
if (index >= WMGetBagItemCount(bPtr->items) || index < 0)
|
||||
return NULL;
|
||||
|
||||
item = WMGetFromBag(bPtr->items, index);
|
||||
if (!item)
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user