1
0
Fork 0

don't let invisible objects prevent dragging (for example: currently

not shown combobox menus)
This commit is contained in:
mfranz 2006-07-10 14:56:07 +00:00
parent 62bdd89fd7
commit 7ae6dd709a

View file

@ -148,6 +148,9 @@ int fgPopup::checkHit(int button, int updown, int x, int y)
int fgPopup::getHitObjects(puObject *object, int x, int y) int fgPopup::getHitObjects(puObject *object, int x, int y)
{ {
if (!object->isVisible())
return 0;
int type = 0; int type = 0;
if(object->getType() & PUCLASS_GROUP) if(object->getType() & PUCLASS_GROUP)
for (puObject *obj = ((puGroup *)object)->getFirstChild(); for (puObject *obj = ((puGroup *)object)->getFirstChild();