From 99c08584c537fd8fc8c1098fbb83d5566a590ecc Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 14 Jul 2009 14:55:59 +0000 Subject: [PATCH] Fix for recurrent task edition Monotone-Parent: 7d7fda1fe8fdf96d8a846378379c8a49661b7e7b Monotone-Revision: 04613672d5bbddb489f5e265a0540411ae9b2fa3 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-07-14T14:55:59 Monotone-Branch: ca.inverse.sogo --- SoObjects/Appointments/SOGoCalendarComponent.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index 4e627ef62..f854a7efd 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -476,6 +476,14 @@ static inline BOOL _occurenceHasID (iCalRepeatableEntityObject *occurence, NSStr NSCalendarDate *recID, *newDate; // Compute time interval from previous event definition. + if (!originalCalendar) + { + if (content) + ASSIGN (originalCalendar, [iCalCalendar parseSingleFromSource: content]); + else + [self warnWithFormat: @"content not available, we will crash"]; + } + oldMaster = (iCalRepeatableEntityObject *) [originalCalendar firstChildWithTag: [self componentTag]]; deltaSecs = [[newEvent startDate]