CMenuWidget: fix simplified up/down code

Origin commit data
------------------
Branch: ni/coolstream
Commit: 3e2e647745
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-06-16 (Sun, 16 Jun 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-06-16 21:37:49 +02:00
parent ca34cbd70c
commit 430444ff21

View File

@@ -465,6 +465,8 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
CVFD::MODES oldLcdMode = CVFD::getInstance()->getMode();
int pos = 0;
if (selected > 0 && selected < (int)items.size())
pos = selected;
exit_pressed = false;
frameBuffer->Lock();