Fix incorrect preview of italic subtitles (#728).
[dcpomatic.git] / src / lib / player_subtitles.cc
index da5714349752c3c1ec45cfd5da30f96271d6627b..8838b2f64bd929d4818151094fe61bf323bf9d27 100644 (file)
@@ -30,7 +30,7 @@ PlayerSubtitles::add_fonts (list<shared_ptr<Font> > fonts_)
        BOOST_FOREACH (shared_ptr<Font> i, fonts_) {
                bool got = false;
                BOOST_FOREACH (shared_ptr<Font> j, fonts) {
-                       if (i->file() == j->file()) {
+                       if (*i == *j) {
                                got = true;
                        }
                }