aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-09-20 21:08:47 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-09-20 21:08:47 +0800
commitc0468154002e682401fe1b91fd01138f36dee66e (patch)
tree8d026fe55b3efc88cf328ebb67ac0b600a597c94
parent57f05af35a79233ea00554193bec7d6a9b246606 (diff)
downloadgsoc2013-evolution-c0468154002e682401fe1b91fd01138f36dee66e.tar.gz
gsoc2013-evolution-c0468154002e682401fe1b91fd01138f36dee66e.tar.zst
gsoc2013-evolution-c0468154002e682401fe1b91fd01138f36dee66e.zip
Fixes #55172
2004-09-15 JP Rosevear <jpr@novell.com> Fixes #55172 * conduits/calendar/calendar-conduit.c (local_record_from_comp): handle -1 (last) for monthly recurrences and check both by_set_pos and by_day since either can indicate this type of recurrence svn path=/trunk/; revision=27308
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/conduits/calendar/calendar-conduit.c7
2 files changed, 13 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 7220810799..9fb85e8b8e 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+2004-09-15 JP Rosevear <jpr@novell.com>
+
+ Fixes #55172
+
+ * conduits/calendar/calendar-conduit.c (local_record_from_comp):
+ handle -1 (last) for monthly recurrences and check both by_set_pos
+ and by_day since either can indicate this type of recurrence
+
2004-09-20 Tony Tsui <ttsui9@gmail.com>
Fixes #66174
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c
index 4c56422513..7f47140196 100644
--- a/calendar/conduits/calendar/calendar-conduit.c
+++ b/calendar/conduits/calendar/calendar-conduit.c
@@ -892,9 +892,11 @@ local_record_from_comp (ECalLocalRecord *local, ECalComponent *comp, ECalConduit
break;
}
- /* FIX ME Not going to work with -ve by_day */
+ /* Not going to work with -ve by_day/by_set_pos other than -1,
+ * pilot doesn't support that anyhow */
local->appt->repeatType = repeatMonthlyByDay;
- switch (icalrecurrencetype_day_position (recur->by_day[0])) {
+ switch (recur->by_set_pos[0] != ICAL_RECURRENCE_ARRAY_MAX ? recur->by_set_pos[0]
+ : icalrecurrencetype_day_position (recur->by_day[0])) {
case 1:
local->appt->repeatDay = dom1stSun;
break;
@@ -907,6 +909,7 @@ local_record_from_comp (ECalLocalRecord *local, ECalComponent *comp, ECalConduit
case 4:
local->appt->repeatDay = dom4thSun;
break;
+ case -1:
case 5:
local->appt->repeatDay = domLastSun;
break;