aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/dialogs/recurrence-page.c6
2 files changed, 12 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 8c4ec0acc0..21b00e0e34 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+2002-09-19 JP Rosevear <jpr@ximian.com>
+
+ * gui/dialogs/recurrence-page.c (simple_recur_to_comp): bump the
+ month_num by 1 because it indexs at 0
+ (recurrence_page_fill_widgets): lower the month_num by one as above
+
+ Fixes #30381
+
2002-09-17 Rodrigo Moya <rodrigo@ximian.com>
Fixes #26362
diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c
index a096e403a8..db3a2e7279 100644
--- a/calendar/gui/dialogs/recurrence-page.c
+++ b/calendar/gui/dialogs/recurrence-page.c
@@ -735,7 +735,9 @@ simple_recur_to_comp (RecurrencePage *rpage, CalComponent *comp)
if (month_num == MONTH_NUM_LAST)
month_num = -1;
-
+ else
+ month_num++;
+
switch (month_day) {
case MONTH_DAY_NTH:
if (month_num == -1)
@@ -1840,7 +1842,7 @@ recurrence_page_fill_widgets (CompEditorPage *page, CalComponent *comp)
if (pos == -1)
priv->month_num = MONTH_NUM_LAST;
else
- priv->month_num = pos;
+ priv->month_num = pos - 1;
priv->month_day = month_day;
} else
goto custom;