diff options
author | JP Rosevear <jpr@ximian.com> | 2002-09-19 13:33:38 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-09-19 13:33:38 +0800 |
commit | bc3278d87a6da2036f3ae4bcf2dc1a149199a9c4 (patch) | |
tree | 3a0cd81e4b44d7af957216604eaff7e947a94b0e /calendar/gui/dialogs | |
parent | 7fea78c3c1d4d6649599ccdf1cd3c5929ae370a8 (diff) | |
download | gsoc2013-evolution-bc3278d87a6da2036f3ae4bcf2dc1a149199a9c4.tar gsoc2013-evolution-bc3278d87a6da2036f3ae4bcf2dc1a149199a9c4.tar.gz gsoc2013-evolution-bc3278d87a6da2036f3ae4bcf2dc1a149199a9c4.tar.bz2 gsoc2013-evolution-bc3278d87a6da2036f3ae4bcf2dc1a149199a9c4.tar.lz gsoc2013-evolution-bc3278d87a6da2036f3ae4bcf2dc1a149199a9c4.tar.xz gsoc2013-evolution-bc3278d87a6da2036f3ae4bcf2dc1a149199a9c4.tar.zst gsoc2013-evolution-bc3278d87a6da2036f3ae4bcf2dc1a149199a9c4.zip |
bump the month_num by 1 because it indexs at 0
002-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
svn path=/trunk/; revision=18110
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/recurrence-page.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |