[evolution-data-server] complete_get_object_master: Fix the NULL recurrence-id check



commit d20c579f010fee1381a8ea2a1472f2e270ea7746
Author: Christophe Dumez <christophe dumez intel com>
Date:   Tue Aug 9 15:22:25 2011 +0300

    complete_get_object_master: Fix the NULL recurrence-id check
    
    The check was checking that the recurrence-id was valid instead
    of making sure that it is NULL (opposite).

 calendar/libecal/e-cal-client.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/calendar/libecal/e-cal-client.c b/calendar/libecal/e-cal-client.c
index cfd6403..57da35a 100644
--- a/calendar/libecal/e-cal-client.c
+++ b/calendar/libecal/e-cal-client.c
@@ -2625,8 +2625,8 @@ complete_get_object_master (ECalClientSourceType source_type, gboolean res, gcha
 					if (!icalcomponent_get_uid (master_comp))
 						continue;
 
-					if (icaltime_is_valid_time (icalcomponent_get_recurrenceid (master_comp)) &&
-					    !icaltime_is_null_time (icalcomponent_get_recurrenceid (master_comp)))
+					if (icaltime_is_null_time (icalcomponent_get_recurrenceid (master_comp)) ||
+					    !icaltime_is_valid_time (icalcomponent_get_recurrenceid (master_comp)))
 						break;
 				}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]