summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-08-31 17:27:47 +0100
committerCarl Hetherington <cth@carlh.net>2015-08-31 18:57:43 +0100
commit07294a6f1b27920bbfcb6567c5b89b8d9a88b069 (patch)
treef1a1690b677721a0174d2648e29ff29605d71e03 /src/lib
parentdc9dc1a61c2670c6017948e84a092c8416973cd1 (diff)
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.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dcpomatic_time.cc2
1 files changed, 1 insertions, 1 deletions
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