From 00a953f5f0e3ab98735736d34b1359756bf82f5c Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Wed, 18 Aug 2004 10:38:10 +0000 Subject: [PATCH] Just got rid of the damn reference. Can anyone fix this hack with horizontal lines, titles...? Maybe we should just replace this code by the old one. SVN-Revision: 1807 --- lib/gui/menu.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/gui/menu.cpp b/lib/gui/menu.cpp index d35f6d902..ddddbb7fe 100644 --- a/lib/gui/menu.cpp +++ b/lib/gui/menu.cpp @@ -462,10 +462,9 @@ Menu::action() // FIXME: wtf?! having a hack to avoid horizontal lines... // Elegant solution would be to check for horizontal lines, right // when it was asked to move menu up and down - MenuItem& new_item = item[active_item]; - if(new_item.kind == MN_DEACTIVE || - new_item.kind == MN_LABEL || - new_item.kind == MN_HL) + if(item[active_item].kind == MN_DEACTIVE || + item[active_item].kind == MN_LABEL || + item[active_item].kind == MN_HL) { // Skip the horzontal line item if (menuaction != MENU_ACTION_UP && menuaction != MENU_ACTION_DOWN) -- 2.11.0