CMenuWidget: fix simplified up/down code

Origin commit data
------------------
Branch: ni/coolstream
Commit: ecef1e8ab8
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
committed by vanhofen
parent 834266d04a
commit 04b6854d11

View File

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