mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-25 17:16:55 +01:00
fixed bug in repainting empty popup buttons
This commit is contained in:
1 parent
d425538578
commit
90f1b587c4
1 file changed
+3
@@ -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