summaryrefslogtreecommitdiff
path: root/views
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 /views
parenta0215153856903e53890edd938374f49ca96d5ae (diff)
downloadvdr-plugin-skindesigner-8e1db5060148df83068479f380537982e8bf1a3e.tar.gz
vdr-plugin-skindesigner-8e1db5060148df83068479f380537982e8bf1a3e.tar.bz2
fixed bug detecting menu item numbers in main menu
Diffstat (limited to 'views')
-rw-r--r--views/displaymenuitemview.c5
1 files changed, 5 insertions, 0 deletions
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;
}
}