From bc3278d87a6da2036f3ae4bcf2dc1a149199a9c4 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Thu, 19 Sep 2002 05:33:38 +0000 Subject: bump the month_num by 1 because it indexs at 0 002-09-19 JP Rosevear * 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 svn path=/trunk/; revision=18110 --- calendar/ChangeLog | 8 ++++++++ calendar/gui/dialogs/recurrence-page.c | 6 ++++-- 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 + + * 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 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; -- cgit v1.2.3