week-grid: fix index sorting
This was causing conflicts on event overlapping calculation.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user