mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 14:08:06 +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;
|
WMMenuItem *item;
|
||||||
|
|
||||||
|
if (index >= WMGetBagItemCount(bPtr->items) || index < 0)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
item = WMGetFromBag(bPtr->items, index);
|
item = WMGetFromBag(bPtr->items, index);
|
||||||
if (!item)
|
if (!item)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user