From 34463669ba49f71fd36978cf0285b9e7e68c0735 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sat, 22 Apr 2006 12:10:21 +0000 Subject: [PATCH] Bug fix for duplicating epg rows --- vepg.cc | 6 ------ 1 file changed, 6 deletions(-) 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; } } -- 2.39.2