mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
CChannelList::updateEvents fix history list event update
This commit is contained in:
@@ -157,13 +157,12 @@ void CChannelList::updateEvents(unsigned int from, unsigned int to)
|
|||||||
if ((*chanlist).empty())
|
if ((*chanlist).empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (from > (*chanlist).size() || from >= to)
|
|
||||||
return;
|
|
||||||
|
|
||||||
|
|
||||||
if (to == 0 || to > (*chanlist).size())
|
if (to == 0 || to > (*chanlist).size())
|
||||||
to = (*chanlist).size();
|
to = (*chanlist).size();
|
||||||
|
|
||||||
|
if (from > (*chanlist).size() || from >= to)
|
||||||
|
return;
|
||||||
|
|
||||||
size_t chanlist_size = to - from;
|
size_t chanlist_size = to - from;
|
||||||
|
|
||||||
CChannelEventList events;
|
CChannelEventList events;
|
||||||
|
Reference in New Issue
Block a user