aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-07-03 14:10:27 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-07-03 14:10:27 +0800
commit2d250ff733392008bd05f7fd588404073c9fb032 (patch)
tree650b948087f2b44644b81f57cf36c025932d53a8
parent2c95c4d8e9f237bc2428b05d976d01241d3394ba (diff)
downloadgsoc2013-evolution-2d250ff733392008bd05f7fd588404073c9fb032.tar
gsoc2013-evolution-2d250ff733392008bd05f7fd588404073c9fb032.tar.gz
gsoc2013-evolution-2d250ff733392008bd05f7fd588404073c9fb032.tar.bz2
gsoc2013-evolution-2d250ff733392008bd05f7fd588404073c9fb032.tar.lz
gsoc2013-evolution-2d250ff733392008bd05f7fd588404073c9fb032.tar.xz
gsoc2013-evolution-2d250ff733392008bd05f7fd588404073c9fb032.tar.zst
gsoc2013-evolution-2d250ff733392008bd05f7fd588404073c9fb032.zip
fixed bad assertion, '!=' -> '=='. (icalcomponent_merge_vtimezone): get
2001-07-03 Damon Chaplin <damon@ximian.com> * src/libical/icalcomponent.c (icalcomponent_merge_component): fixed bad assertion, '!=' -> '=='. (icalcomponent_merge_vtimezone): get the TZID from vtimezone, not comp. svn path=/trunk/; revision=10733
-rw-r--r--libical/ChangeLog7
-rw-r--r--libical/src/libical/icalcomponent.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/libical/ChangeLog b/libical/ChangeLog
index a86513c7ab..8629b05d5b 100644
--- a/libical/ChangeLog
+++ b/libical/ChangeLog
@@ -1,6 +1,11 @@
2001-07-03 Damon Chaplin <damon@ximian.com>
- * src/libical/icaltimezone.c (icaltimezone_get_builtin_timezone_from_tzid):
+ * src/libical/icalcomponent.c (icalcomponent_merge_component): fixed
+ bad assertion, '!=' -> '=='.
+ (icalcomponent_merge_vtimezone): get the TZID from vtimezone, not comp.
+
+2001-07-03 Damon Chaplin <damon@ximian.com>
+
* src/libical/icaltime.c:
* src/libical/icalcomponent.c: more timezone stuff.
diff --git a/libical/src/libical/icalcomponent.c b/libical/src/libical/icalcomponent.c
index 8c5295b79f..6cf5c899fe 100644
--- a/libical/src/libical/icalcomponent.c
+++ b/libical/src/libical/icalcomponent.c
@@ -1500,7 +1500,7 @@ void icalcomponent_merge_component(icalcomponent* comp,
/* Check that both components are VCALENDAR components. */
assert (icalcomponent_isa(comp) == ICAL_VCALENDAR_COMPONENT);
- assert (icalcomponent_isa(comp_to_merge) != ICAL_VCALENDAR_COMPONENT);
+ assert (icalcomponent_isa(comp_to_merge) == ICAL_VCALENDAR_COMPONENT);
/* Step through each subcomponent of comp_to_merge, looking for VTIMEZONEs.
For each VTIMEZONE found, check if we need to add it to comp and if we
@@ -1559,7 +1559,7 @@ static void icalcomponent_merge_vtimezone (icalcomponent *comp,
icaltimezone *existing_vtimezone;
/* Get the TZID of the VTIMEZONE. */
- tzid_prop = icalcomponent_get_first_property (comp, ICAL_TZID_PROPERTY);
+ tzid_prop = icalcomponent_get_first_property (vtimezone, ICAL_TZID_PROPERTY);
if (!tzid_prop)
return;