]> git.mxchange.org Git - flightgear.git/commitdiff
don't let invisible objects prevent dragging (for example: currently
authormfranz <mfranz>
Mon, 10 Jul 2006 14:56:07 +0000 (14:56 +0000)
committermfranz <mfranz>
Mon, 10 Jul 2006 14:56:07 +0000 (14:56 +0000)
not shown combobox menus)

src/GUI/dialog.cxx

index 6bb15501ff289467e23f4ee5c38a61cebf303e46..63e3ac7a1d92fba95c16bbc53e5289ad647a4698 100644 (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)
 {
+    if (!object->isVisible())
+        return 0;
+
     int type = 0;
     if(object->getType() & PUCLASS_GROUP)
         for (puObject *obj = ((puGroup *)object)->getFirstChild();