From 1e6e2c49cbbec03a4dc661edff04b85f7372cf2f Mon Sep 17 00:00:00 2001 From: louis Date: Tue, 30 Jun 2015 17:20:10 +0200 Subject: fixed bug that menuitem number is not calculated correctly --- HISTORY | 2 ++ recmenu.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 04206a4..82f3441 100644 --- a/HISTORY +++ b/HISTORY @@ -50,3 +50,5 @@ Version 0.1.5 Version 0.1.6 +- fixed bug that menuitem number is not calculated correctly + if recording menu scrolls diff --git a/recmenu.c b/recmenu.c index e26b502..a5070ec 100644 --- a/recmenu.c +++ b/recmenu.c @@ -150,7 +150,7 @@ void cRecMenu::AddFooter(cRecMenuItem *footer) { int cRecMenu::GetNumActive(void) { int num = 0; - for (cRecMenuItem *current = start; current; current = menuItems.Next(current)) { + for (cRecMenuItem *current = menuItems.First(); current; current = menuItems.Next(current)) { if (current == active) return num; num++; @@ -504,4 +504,4 @@ void cRecMenu::DrawFooter(void) { active = footer; recMenuGrid->SetCurrent(footer->Id(), true); } -} \ No newline at end of file +} -- cgit v1.2.3