aboutsummaryrefslogtreecommitdiff
path: root/backends/wince/CEgui
diff options
context:
space:
mode:
Diffstat (limited to 'backends/wince/CEgui')
-rw-r--r--backends/wince/CEgui/ToolbarHandler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/backends/wince/CEgui/ToolbarHandler.cpp b/backends/wince/CEgui/ToolbarHandler.cpp
index 4a3622260e..3678a3b014 100644
--- a/backends/wince/CEgui/ToolbarHandler.cpp
+++ b/backends/wince/CEgui/ToolbarHandler.cpp
@@ -33,7 +33,6 @@ namespace CEGUI {
_toolbarMap.addKey(name);
_toolbarMap[name] = (Toolbar*)&toolbar;
-
if (!_active) {
_active = &((Toolbar&)toolbar);
_current = name;
@@ -58,7 +57,7 @@ namespace CEGUI {
}
bool ToolbarHandler::action(int x, int y, bool pushed) {
- if (_active) {
+ if (_active && _active->visible()) {
// FIXME !
if (_offset > 240)
return _active->action(x / 2, (y - _offset) / 2, pushed);