supplement to 8079c9126b, THX Gaucho316 for correction

This commit is contained in:
Jacek Jendrzej
2013-05-16 22:40:52 +02:00
parent c5e223a231
commit 4a461c1801

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