mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-10 06:17:12 +00:00
fix(calendar): fix weekly calculator when event has no duration
This commit is contained in:
1 parent
ecbdf450e3
commit
e79b01ebd1
1 file changed
+2
-1
@@ -163,7 +163,8 @@
|
||||
|
||||
currentEndDate = [currentStartDate addTimeInterval: [firstRange duration]];
|
||||
if (hasRepeatCount ||
|
||||
[startDate compare: currentEndDate] == NSOrderedAscending)
|
||||
[startDate compare: currentEndDate] == NSOrderedAscending ||
|
||||
([startDate compare: currentEndDate] == NSOrderedSame && [firstRange duration] == 0))
|
||||
{
|
||||
// If the rule count is defined, stop once the count is reached.
|
||||
if ([currentStartDate compare: firStart] == NSOrderedSame)
|
||||
|
||||
Reference in new issue
Block a user