supplement to e946162499, THX Gaucho316 for correction

Origin commit data
------------------
Commit: 4a461c1801
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-05-16 (Thu, 16 May 2013)
This commit is contained in:
Jacek Jendrzej
2013-05-16 22:40:52 +02:00
parent fb34a0fc68
commit 764733cce7

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()){