diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-06-12 23:34:31 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-06-12 23:34:31 +0100 |
| commit | 41d32a43f761fd2d79dacf9a84374a6d17916d36 (patch) | |
| tree | bf106bf5a6df144af38a93adc70adddf8ce2897b /src/lib/dcpomatic_time.cc | |
| parent | 141f9a795381fa3bbd3f2bcbd19975dfd8a8c35e (diff) | |
Fix subrip subtitles a little.
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 98888646d..ae4dea44f 100644 --- a/src/lib/dcpomatic_time.cc +++ b/src/lib/dcpomatic_time.cc @@ -49,3 +49,9 @@ operator<< (ostream& s, DCPTime t) s << "[DCP " << t.get() << " " << t.seconds() << "s]"; return s; } + +bool +ContentTimePeriod::overlaps (ContentTimePeriod const & other) const +{ + return (from < other.to && to > other.from); +} |
