diff options
| author | louis <louis.braun@gmx.de> | 2015-03-14 07:11:13 +0100 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2015-03-14 07:11:13 +0100 |
| commit | 8e1db5060148df83068479f380537982e8bf1a3e (patch) | |
| tree | 9d15ca1174629370ab08794e3f83b18b0029e285 | |
| parent | a0215153856903e53890edd938374f49ca96d5ae (diff) | |
| download | vdr-plugin-skindesigner-8e1db5060148df83068479f380537982e8bf1a3e.tar.gz vdr-plugin-skindesigner-8e1db5060148df83068479f380537982e8bf1a3e.tar.bz2 | |
fixed bug detecting menu item numbers in main menu
| -rw-r--r-- | HISTORY | 3 | ||||
| -rw-r--r-- | views/displaymenuitemview.c | 5 |
2 files changed, 7 insertions, 1 deletions
@@ -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;
}
}
|
