From cfeb94de70fae29025bc25b43132374e3f55b0b4 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 13 Nov 2014 10:51:27 +0100 Subject: [PATCH] CChannelList::updateEvents fix history list event update Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/6e08417d402350808f7d8f600077fe0524df3195 Author: Jacek Jendrzej Date: 2014-11-13 (Thu, 13 Nov 2014) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/channellist.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index cf0533285..e1bd25d51 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -157,13 +157,12 @@ void CChannelList::updateEvents(unsigned int from, unsigned int to) if ((*chanlist).empty()) return; - if (from > (*chanlist).size() || from >= to) - return; - - if (to == 0 || to > (*chanlist).size()) to = (*chanlist).size(); + if (from > (*chanlist).size() || from >= to) + return; + size_t chanlist_size = to - from; CChannelEventList events;