From cd771c5ba5daae0f2d16a6dc8388b6d4f21827a2 Mon Sep 17 00:00:00 2001 From: Daru13 Date: Mon, 26 Nov 2018 18:35:09 +0100 Subject: [PATCH] Do not intersect an event with anotoher event it immediately follows. This is required so that an event E1 ending at time T and an event E2 starting at time T _can_ be assigned the same color (i.e. they _can_ appear on the same row). --- event/static/js/interval_coloration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event/static/js/interval_coloration.js b/event/static/js/interval_coloration.js index 082b9de..8bd44d0 100644 --- a/event/static/js/interval_coloration.js +++ b/event/static/js/interval_coloration.js @@ -18,7 +18,7 @@ class IntervalColoration { for (let j = 0; j < i; ++j) { let inti = this.intervals[i]; let intj = this.intervals[j]; - if (inti[0] <= intj[1] && intj[0] <= inti[1]) { + if (inti[0] < intj[1] && intj[0] < inti[1]) { this.adj[i].push(j); this.adj[j].push(i); }