From 67250759b59c1cfd3e9ffdedf62b3fcc9408c211 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 1 Oct 2007 07:44:05 +0000 Subject: 2007-10-01 mcrha Fix for bug #428402 svn path=/trunk/; revision=34341 --- calendar/importers/icalendar-importer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'calendar/importers') diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c index 4fd4d9e447..cbdbb70ded 100644 --- a/calendar/importers/icalendar-importer.c +++ b/calendar/importers/icalendar-importer.c @@ -119,9 +119,9 @@ prepare_events (icalcomponent *icalcomp, GList **vtodos) *vtodos = g_list_prepend (*vtodos, subcomp); else icalcomponent_free (subcomp); + } else { + icalcompiter_next (&iter); } - - icalcompiter_next (&iter); } } @@ -143,9 +143,9 @@ prepare_tasks (icalcomponent *icalcomp, GList *vtodos) icalcompiter_next (&iter); icalcomponent_remove_component (icalcomp, subcomp); icalcomponent_free (subcomp); + } else { + icalcompiter_next (&iter); } - - icalcompiter_next (&iter); } for (elem = vtodos; elem; elem = elem->next) { -- cgit