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; } }