e-cal-data-model: fix critical due invalid time range
libecal-CRITICAL **: e_cal_recur_generate_instances_sync: assertion 'icaltime_compare (interval_start, interval_end) < 0' failed https://bugzilla.gnome.org/show_bug.cgi?id=763047
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
7dfadeb56a
commit
c0ed70f9df
@@ -1109,6 +1109,10 @@ cal_data_model_expand_recurrences_thread (ECalDataModel *data_model,
|
||||
|
||||
range_start = data_model->priv->range_start;
|
||||
range_end = data_model->priv->range_end;
|
||||
if (range_end <= range_start) {
|
||||
range_start = 0;
|
||||
range_end = time (NULL);
|
||||
}
|
||||
|
||||
UNLOCK_PROPS ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user