Hide Font members behind accessors.
[dcpomatic.git] / src / lib / writer.cc
index 7e47c317ee7ff09f8226b26f04e558168de84f73..289f10c424e3e649fa2cd10a5132e2558f55c863 100644 (file)
@@ -521,7 +521,7 @@ Writer::finish ()
 
                /* Add all the fonts to the subtitle content */
                BOOST_FOREACH (shared_ptr<Font> i, _fonts) {
-                       _subtitle_asset->add_font (i->id, i->file.get_value_or (liberation));
+                       _subtitle_asset->add_font (i->id(), i->file().get_value_or (liberation));
                }
 
                if (dynamic_pointer_cast<dcp::InteropSubtitleAsset> (_subtitle_asset)) {