X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=test%2Fdcp_subtitle_test.cc;fp=test%2Fdcp_subtitle_test.cc;h=4928d92c1883c634c150258995fdd42e3a944d93;hp=9b7b77279968f6afffa977c448a685ebb7989ed4;hb=db22f81ccce9e1a5f205e6d8b3c0631fc039a173;hpb=7a301e22de2a3c47a81ebc4c9f19b68131b482aa diff --git a/test/dcp_subtitle_test.cc b/test/dcp_subtitle_test.cc index 9b7b77279..4928d92c1 100644 --- a/test/dcp_subtitle_test.cc +++ b/test/dcp_subtitle_test.cc @@ -246,7 +246,9 @@ BOOST_AUTO_TEST_CASE (test_font_override) film->set_interop(true); BOOST_REQUIRE_EQUAL(content->text.size(), 1U); - content->text.front()->get_font("theFontId")->set_file("test/data/Inconsolata-VF.ttf"); + auto font = content->text.front()->get_font("0_theFontId"); + BOOST_REQUIRE(font); + font->set_file("test/data/Inconsolata-VF.ttf"); make_and_verify_dcp (film, { dcp::VerificationNote::Code::INVALID_STANDARD }); check_file (subtitle_file(film).parent_path() / "font_0.ttf", "test/data/Inconsolata-VF.ttf");