[gnome-calendar/wip/pandusonu/week-view] week-grid: fix index sorting
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/wip/pandusonu/week-view] week-grid: fix index sorting
- Date: Tue, 17 Jan 2017 13:24:50 +0000 (UTC)
commit 529acca2390b0b3270cfafac5822f36b244d14cb
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Jan 9 18:25:55 2017 -0200
week-grid: fix index sorting
This was causing conflicts on event overlapping calculation.
src/views/gcal-week-grid.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/views/gcal-week-grid.c b/src/views/gcal-week-grid.c
index ae982e7..4a727a9 100644
--- a/src/views/gcal-week-grid.c
+++ b/src/views/gcal-week-grid.c
@@ -175,7 +175,7 @@ static inline gint
int16_compare (gconstpointer a,
gconstpointer b)
{
- return GPOINTER_TO_INT (b) - GPOINTER_TO_INT (a);
+ return GPOINTER_TO_INT (a) - GPOINTER_TO_INT (b);
}
static inline guint
@@ -202,7 +202,6 @@ get_event_index (GcalRangeTree *tree,
break;
}
-
return idx;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]