aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/wince/CEgui/Panel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/wince/CEgui/Panel.cpp b/backends/wince/CEgui/Panel.cpp
index 2c7514af09..fc1b8d28d3 100644
--- a/backends/wince/CEgui/Panel.cpp
+++ b/backends/wince/CEgui/Panel.cpp
@@ -64,7 +64,7 @@ namespace CEGUI {
bool Panel::action(int x, int y, bool pushed) {
ItemMap::const_iterator iterator;
bool result = false;
- if (!checkInside(x, y))
+ if (!_visible || !checkInside(x, y))
return false;
for (iterator = _itemsMap.begin(); !result && iterator != _itemsMap.end(); ++iterator)
@@ -79,4 +79,4 @@ namespace CEGUI {
Panel::~Panel() {
_itemsMap.clear();
}
-} \ No newline at end of file
+}