From 07294a6f1b27920bbfcb6567c5b89b8d9a88b069 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 31 Aug 2015 17:27:47 +0100 Subject: Fix overlaps; before you'd get a different answer if you did a.overlaps(b) cf b.overlaps(a) if they were just-not overlapping. --- src/lib/dcpomatic_time.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/dcpomatic_time.cc b/src/lib/dcpomatic_time.cc index 6f8f5efa2..28f766074 100644 --- a/src/lib/dcpomatic_time.cc +++ b/src/lib/dcpomatic_time.cc @@ -92,7 +92,7 @@ operator<< (ostream& s, DCPTime t) bool ContentTimePeriod::overlaps (ContentTimePeriod const & other) const { - return (from < other.to && to >= other.from); + return (from < other.to && to > other.from); } bool -- cgit v1.2.3