From 3e8f7cb29ea5034554669dd87d9f210903440b3d Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 26 Nov 2012 15:07:33 -0500 Subject: [PATCH] Fix all-day event display in day/week view Fixes #2098 --- UI/Scheduler/UIxCalListingActions.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UI/Scheduler/UIxCalListingActions.m b/UI/Scheduler/UIxCalListingActions.m index 8ef47f070..0e37d3bd4 100644 --- a/UI/Scheduler/UIxCalListingActions.m +++ b/UI/Scheduler/UIxCalListingActions.m @@ -723,6 +723,11 @@ _userStateInEvent (NSArray *event) if (eventEnd > endsSecs) eventEnd = endsSecs; + if (eventEnd < startSecs) + // The event doesn't end in the covered period. + // This special case occurs with a DST change. + return; + userState = _userStateInEvent (event); while (currentDayStart + dayLength < eventEnd) {