From acdd11bcb947d6a2074c0bbde531c44bfd44d26e Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 7 Oct 2002 20:43:48 +0000 Subject: Fixes #31774 2002-10-07 Rodrigo Moya Fixes #31774 * gui/dialogs/alarm-options.c (dalarm_widgets_to_alarm, palarm_widgets_to_alarm): use correct pointer in loop. svn path=/trunk/; revision=18346 --- calendar/ChangeLog | 7 +++++++ calendar/gui/dialogs/alarm-options.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index ab80082d15..e9f27ba527 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2002-10-07 Rodrigo Moya + + Fixes #31774 + + * gui/dialogs/alarm-options.c (dalarm_widgets_to_alarm, + palarm_widgets_to_alarm): use correct pointer in loop. + 2002-10-07 JP Rosevear * gui/dialogs/cal-prefs-dialog.c (setup_changes): cast the correct diff --git a/calendar/gui/dialogs/alarm-options.c b/calendar/gui/dialogs/alarm-options.c index 3e886f0ffa..e3d1431e6d 100644 --- a/calendar/gui/dialogs/alarm-options.c +++ b/calendar/gui/dialogs/alarm-options.c @@ -475,7 +475,7 @@ dalarm_widgets_to_alarm (Dialog *dialog, CalComponentAlarm *alarm) * we don't re-set the alarm's description */ icalcomp = cal_component_alarm_get_icalcomponent (alarm); icalprop = icalcomponent_get_first_property (icalcomp, ICAL_X_PROPERTY); - while (icalcomp) { + while (icalprop) { const char *x_name; x_name = icalproperty_get_x_name (icalprop); @@ -524,7 +524,7 @@ palarm_widgets_to_alarm (Dialog *dialog, CalComponentAlarm *alarm) * we don't re-set the alarm's description */ icalcomp = cal_component_alarm_get_icalcomponent (alarm); icalprop = icalcomponent_get_first_property (icalcomp, ICAL_X_PROPERTY); - while (icalcomp) { + while (icalprop) { const char *x_name; x_name = icalproperty_get_x_name (icalprop); -- cgit