typeid() doesn't seem to downcast, so just check types in the take_settings_from...
[dcpomatic.git] / src / lib / film.cc
index 2b045f5c4c2fcef84503e4dc32874501deb94420..db1cb39aaad5b90075b6aaaca5eb67c118bf852f 100644 (file)
@@ -1086,9 +1086,7 @@ Film::add_content (shared_ptr<Content> c)
        if (_template_film) {
                /* Take settings from the first piece of content of c's type in _template */
                BOOST_FOREACH (shared_ptr<Content> i, _template_film->content()) {
-                       if (typeid(i.get()) == typeid(c.get())) {
-                               c->take_settings_from (i);
-                       }
+                       c->take_settings_from (i);
                }
        }