supplement to 3cc3eec0ed, THX Gaucho316 for correction

Origin commit data
------------------
Branch: ni/coolstream
Commit: 4a461c1801
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-05-16 (Thu, 16 May 2013)


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

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2013-05-16 22:40:52 +02:00
parent 7f1589770d
commit 00157271f0

View File

@@ -1294,7 +1294,7 @@ int CEventFinderMenu::showMenu(void)
} }
else if(*m_search_list == CNeutrinoEventList::SEARCH_LIST_BOUQUET) else if(*m_search_list == CNeutrinoEventList::SEARCH_LIST_BOUQUET)
{ {
if(bouquetList->Bouquets.size() < *m_search_bouquet_id ){ if (*m_search_bouquet_id >= bouquetList->Bouquets.size())
*m_search_bouquet_id = bouquetList->getActiveBouquetNumber();; *m_search_bouquet_id = bouquetList->getActiveBouquetNumber();;
} }
if(!bouquetList->Bouquets.empty()) if(!bouquetList->Bouquets.empty())
@@ -1344,7 +1344,7 @@ bool CEventFinderMenu::changeNotify(const neutrino_locale_t OptionName, void *)
} }
else if (*m_search_list == CNeutrinoEventList::SEARCH_LIST_BOUQUET) else if (*m_search_list == CNeutrinoEventList::SEARCH_LIST_BOUQUET)
{ {
if(bouquetList->Bouquets.size() < *m_search_bouquet_id ){ if (*m_search_bouquet_id >= bouquetList->Bouquets.size())
*m_search_bouquet_id = bouquetList->getActiveBouquetNumber(); *m_search_bouquet_id = bouquetList->getActiveBouquetNumber();
} }
if(!bouquetList->Bouquets.empty()){ if(!bouquetList->Bouquets.empty()){