From: Chris Tallon Date: Sat, 22 Apr 2006 12:10:21 +0000 (+0000) Subject: Bug fix for duplicating epg rows X-Git-Tag: r0-2-2b~34 X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=34463669ba49f71fd36978cf0285b9e7e68c0735;p=vompclient.git Bug fix for duplicating epg rows --- diff --git a/vepg.cc b/vepg.cc index a27a05f..fc496be 100644 --- a/vepg.cc +++ b/vepg.cc @@ -541,17 +541,11 @@ void VEpg::updateEventList() Channel* chan; for(UINT listIndex = 0; listIndex < gridRows; listIndex++) { - if (eventLista[listIndex]) - { - if ((eventLista[listIndex])->empty()) - (eventLista)[listIndex]->clear(); - } if(listTop + listIndex >= UINT(chanListbox.getBottomOption())) continue; chan = (*chanList)[listTop + listIndex]; EventList* newEventList = VDR::getInstance()->getChannelSchedule(chan->number, ltime - 1, WINDOW_WIDTH * 60 + 2); // ltime - 1 to get prog before window (allows cursor left past ltime). + 2 to get prog after window - if (newEventList) eventLista[listIndex] = newEventList; } }