[longomatch] Fix timenode intersections
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix timenode intersections
- Date: Fri, 27 Feb 2015 10:31:21 +0000 (UTC)
commit 41fbc0b348a62c616c74322527c5d35ba0718dea
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Feb 26 21:16:36 2015 +0100
Fix timenode intersections
LongoMatch.Core/Store/TimeNode.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Core/Store/TimeNode.cs b/LongoMatch.Core/Store/TimeNode.cs
index 8ad53a2..70ecd6b 100644
--- a/LongoMatch.Core/Store/TimeNode.cs
+++ b/LongoMatch.Core/Store/TimeNode.cs
@@ -141,7 +141,7 @@ namespace LongoMatch.Core.Store
public TimeNode Intersect (TimeNode tn) {
if (tn.Stop == null || tn.Start == null || Start == null || Stop == null)
return null;
- if (tn.Stop < Start || tn.Start > Stop)
+ if (tn.Stop <= Start || tn.Start >= Stop)
return null;
else
return new TimeNode {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]