From: mfranz Date: Mon, 10 Jul 2006 14:56:07 +0000 (+0000) Subject: don't let invisible objects prevent dragging (for example: currently X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7ae6dd709af64bc2b113e0ca1dbd12dbb4f18c6e;p=flightgear.git don't let invisible objects prevent dragging (for example: currently not shown combobox menus) --- diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 6bb15501f..63e3ac7a1 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -148,6 +148,9 @@ int fgPopup::checkHit(int button, int updown, int x, int y) int fgPopup::getHitObjects(puObject *object, int x, int y) { + if (!object->isVisible()) + return 0; + int type = 0; if(object->getType() & PUCLASS_GROUP) for (puObject *obj = ((puGroup *)object)->getFirstChild();