[gnome-calendar] e-cal-data-model: fix critical due invalid time range
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-calendar] e-cal-data-model: fix critical due invalid time range
- Date: Mon,  3 Oct 2016 22:25:51 +0000 (UTC)
commit c0ed70f9df189b9243fe864d6e30dd517dd2fad0
Author: Victor Toso <me victortoso com>
Date:   Mon Oct 3 22:45:09 2016 +0200
    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
 src/e-cal-data-model.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/e-cal-data-model.c b/src/e-cal-data-model.c
index 2d14cc9..311bc74 100644
--- a/src/e-cal-data-model.c
+++ b/src/e-cal-data-model.c
@@ -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 ();
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]