event-widget: fix events with no end date

This commit is contained in:
Erick Pérez Castellanos
2015-02-16 09:31:21 -05:00
parent 4c7a99e7bf
commit 8f1b118abb
3 changed files with 8 additions and 2 deletions
+3
View File
@@ -397,6 +397,9 @@ gint
icaltime_compare_date (const icaltimetype *date1,
const icaltimetype *date2)
{
if (date2 == NULL)
return 0;
if (date1->year < date2->year)
return -1;
else if (date1->year > date2->year)