summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-03-14 07:11:13 +0100
committerlouis <louis.braun@gmx.de>2015-03-14 07:11:13 +0100
commit8e1db5060148df83068479f380537982e8bf1a3e (patch)
tree9d15ca1174629370ab08794e3f83b18b0029e285
parenta0215153856903e53890edd938374f49ca96d5ae (diff)
downloadvdr-plugin-skindesigner-8e1db5060148df83068479f380537982e8bf1a3e.tar.gz
vdr-plugin-skindesigner-8e1db5060148df83068479f380537982e8bf1a3e.tar.bz2
fixed bug detecting menu item numbers in main menu
-rw-r--r--HISTORY3
-rw-r--r--views/displaymenuitemview.c5
2 files changed, 7 insertions, 1 deletions
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;
}
}