1
0
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:
kojima
1999-11-02 21:28:08 +00:00
parent d425538578
commit 90f1b587c4

View File

@@ -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;