--- evolution-2.2.1.1.orig/plugins/itip-formatter/itip-formatter.c 2005-03-15 13:59:10.000000000 -0700 +++ evolution-2.2.1.1/plugins/itip-formatter/itip-formatter.c 2005-04-05 14:13:46.038875824 -0600 @@ -1012,17 +1012,17 @@ } switch (kind) { - case ICAL_VEVENT_COMPONENT: - pitip->type = E_CAL_SOURCE_TYPE_EVENT; - break; - case ICAL_VTODO_COMPONENT: - pitip->type = E_CAL_SOURCE_TYPE_TODO; - break; - default: + case ICAL_NO_COMPONENT: set_itip_error (pitip, container, _("The item in the calendar is not valid"), _("The message does contain a calendar, but the calendar contains no events, tasks or free/busy information")); return FALSE; + case ICAL_VTODO_COMPONENT: + pitip->type = E_CAL_SOURCE_TYPE_TODO; + break; + default: + pitip->type = E_CAL_SOURCE_TYPE_EVENT; + break; } pitip->total = icalcomponent_count_components (pitip->main_comp, ICAL_VEVENT_COMPONENT);