summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbTk/Menu.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index 199a3eb..302e552 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Menu.cc,v 1.20 2003/05/04 10:34:09 fluxgen Exp $ 25// $Id: Menu.cc,v 1.21 2003/05/13 00:24:26 fluxgen Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -920,7 +920,7 @@ void Menu::setItemEnabled(unsigned int index, bool enable) {
920bool Menu::isItemEnabled(unsigned int index) const { 920bool Menu::isItemEnabled(unsigned int index) const {
921 if (index >= menuitems.size()) return false; 921 if (index >= menuitems.size()) return false;
922 922
923 MenuItem *item = find(index); 923 const MenuItem *item = find(index);
924 if (!item) 924 if (!item)
925 return false; 925 return false;
926 926