diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-20 20:50:54 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-20 20:50:54 +0100 |
| commit | 5ba9edaabe4dabbbfb213f1ef053301f604d2517 (patch) | |
| tree | e9cbd7bca5c5e2812f6d1639ae3dfd6cb1906889 /src/lib/dcpomatic_time.h | |
| parent | 2d9fac34107b14a6e346bb8dda44451281159ad3 (diff) | |
Fix missing second-lines of subtitles (#641).
Diffstat (limited to 'src/lib/dcpomatic_time.h')
| -rw-r--r-- | src/lib/dcpomatic_time.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/dcpomatic_time.h b/src/lib/dcpomatic_time.h index 494aebba7..41339d128 100644 --- a/src/lib/dcpomatic_time.h +++ b/src/lib/dcpomatic_time.h @@ -238,6 +238,10 @@ public: bool overlaps (ContentTimePeriod const & o) const; bool contains (ContentTime const & o) const; + + bool operator== (ContentTimePeriod const & o) const { + return from == o.from && to == o.to; + } }; DCPTime min (DCPTime a, DCPTime b); |
