diff options
author | Nicolas Bacca | 2005-10-16 22:53:56 +0000 |
---|---|---|
committer | Nicolas Bacca | 2005-10-16 22:53:56 +0000 |
commit | 9bd5866df24fc1acf91a58173ce24d001442108d (patch) | |
tree | ef53ed4e19b22cdea7363d907e285b070289d586 | |
parent | ce1a66a3328b658f927a0271122d3fb9234a9658 (diff) | |
download | scummvm-rg350-9bd5866df24fc1acf91a58173ce24d001442108d.tar.gz scummvm-rg350-9bd5866df24fc1acf91a58173ce24d001442108d.tar.bz2 scummvm-rg350-9bd5866df24fc1acf91a58173ce24d001442108d.zip |
Toolbar must be visible to process an action.
svn-id: r19122
-rw-r--r-- | backends/wince/CEgui/ToolbarHandler.cpp | 3 |
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); |