week-grid: fix index sorting

This was causing conflicts on event overlapping calculation.
This commit is contained in:
Georges Basile Stavracas Neto
2017-01-09 18:25:55 -02:00
parent 30cb8a5020
commit 529acca239
+1 -2
View File
@@ -175,7 +175,7 @@ static inline gint
int16_compare (gconstpointer a, int16_compare (gconstpointer a,
gconstpointer b) gconstpointer b)
{ {
return GPOINTER_TO_INT (b) - GPOINTER_TO_INT (a); return GPOINTER_TO_INT (a) - GPOINTER_TO_INT (b);
} }
static inline guint static inline guint
@@ -202,7 +202,6 @@ get_event_index (GcalRangeTree *tree,
break; break;
} }
return idx; return idx;
} }