From 3100ac1e9cd1a97780441ba940f48484ad7a77ce Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 24 Sep 2019 14:45:53 -0400 Subject: [PATCH] (Calendar) Limit event block size to a day --- UI/Scheduler/UIxCalListingActions.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/Scheduler/UIxCalListingActions.m b/UI/Scheduler/UIxCalListingActions.m index b52b396b8..58d746c3a 100644 --- a/UI/Scheduler/UIxCalListingActions.m +++ b/UI/Scheduler/UIxCalListingActions.m @@ -958,6 +958,8 @@ static inline void _feedBlockWithDayBasedData (NSMutableDictionary *block, unsig } quarterStart = (start - dayStart) / quarterLength; delta = end - dayStart; + if (delta > dayLength) + delta = dayLength; if ((delta % quarterLength)) delta += quarterLength; length = (delta / quarterLength) - quarterStart;