diff options
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/dialogs/alarm-options.c | 4 |
2 files changed, 9 insertions, 2 deletions
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 <rodrigo@ximian.com> + + 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 <jpr@ximian.com> * 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); |