Merge pull request #369 from MilosKozak/AdrianLxM-patch-1

Overlapping interval - regard first element on cut
This commit is contained in:
Milos Kozak 2017-08-17 00:26:00 +02:00 committed by GitHub
commit e53bf6b728

View file

@ -15,7 +15,7 @@ public class OverlappingIntervals<T extends Interval> extends Intervals<T> {
boolean needToCut = false;
long cutTime = 0;
for (int index = rawData.size()-1; index > 0; index--) { //begin with newest
for (int index = rawData.size()-1; index >= 0; index--) { //begin with newest
Interval cur = rawData.valueAt(index);
if (cur.isEndingEvent()){
needToCut = true;