Fix all-day event display in day/week view

Fixes #2098
pull/7/head
Francis Lachapelle 2012-11-26 15:07:33 -05:00
parent 7c250fad8f
commit 3e8f7cb29e
1 changed files with 5 additions and 0 deletions

View File

@ -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)
{