From 7ae6dd709af64bc2b113e0ca1dbd12dbb4f18c6e Mon Sep 17 00:00:00 2001 From: mfranz Date: Mon, 10 Jul 2006 14:56:07 +0000 Subject: [PATCH] don't let invisible objects prevent dragging (for example: currently not shown combobox menus) --- src/GUI/dialog.cxx | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.39.5