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
+1 -1
View File
@@ -912,7 +912,7 @@ gcal_event_widget_peek_end_date (GcalEventWidget *event)
GcalEventWidgetPrivate *priv;
priv = gcal_event_widget_get_instance_private (event);
return priv->dt_end;
return priv->dt_end != NULL ? priv->dt_end : priv->dt_start;
}
void