diff options
Diffstat (limited to 'src/lib/dcpomatic_time.cc')
| -rw-r--r-- | src/lib/dcpomatic_time.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/dcpomatic_time.cc b/src/lib/dcpomatic_time.cc index dcdfd97da..fa6271354 100644 --- a/src/lib/dcpomatic_time.cc +++ b/src/lib/dcpomatic_time.cc @@ -55,3 +55,9 @@ ContentTimePeriod::overlaps (ContentTimePeriod const & other) const { return (from < other.to && to >= other.from); } + +bool +ContentTimePeriod::contains (ContentTime const & other) const +{ + return (from >= other && to < other); +} |
