From 8e1db5060148df83068479f380537982e8bf1a3e Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 14 Mar 2015 07:11:13 +0100 Subject: [PATCH] fixed bug detecting menu item numbers in main menu --- HISTORY | 3 ++- views/displaymenuitemview.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index 83765bb..5ac4fe1 100644 --- a/HISTORY +++ b/HISTORY @@ -210,5 +210,6 @@ Version 0.3.0 - checking setup conditions for viewelements - fixed FadeOut bug -- fixed crash when opening and closing main menu consecutively +- fixed crash when opening and closing main menu consecutively +- fixed bug detecting menu item numbers in main menu diff --git a/views/displaymenuitemview.c b/views/displaymenuitemview.c index 3594396..1e3a667 100644 --- a/views/displaymenuitemview.c +++ b/views/displaymenuitemview.c @@ -240,7 +240,12 @@ void cDisplayMenuItemMainView::SplitMenuText(void) { } } if (found) { + //if current char is not a figure anymore, break if (!(s >= '0' && s <= '9')) { + //there has to be a space after the menu item number + //plugins with figures in their name are eval :-) + if (s != ' ') + found = false; doBreak = true; } }