From 9bd5866df24fc1acf91a58173ce24d001442108d Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Sun, 16 Oct 2005 22:53:56 +0000 Subject: Toolbar must be visible to process an action. svn-id: r19122 --- backends/wince/CEgui/ToolbarHandler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'backends/wince') 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); -- cgit v1.2.3