diff options
| -rw-r--r-- | src/verify.cc | 4 | ||||
| -rw-r--r-- | src/verify.h | 2 | ||||
| -rw-r--r-- | test/verify_test.cc | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/verify.cc b/src/verify.cc index f570a41d..fc58cf78 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1003,7 +1003,7 @@ verify_text_details ( } if (missing_load_font_id) { - notes.push_back(dcp::VerificationNote(VerificationNote::Type::ERROR, VerificationNote::Code::MISSING_LOAD_FONT).set_id(*missing_load_font_id)); + notes.push_back(dcp::VerificationNote(VerificationNote::Type::ERROR, VerificationNote::Code::MISSING_LOAD_FONT_FOR_FONT).set_id(*missing_load_font_id)); } } @@ -2057,7 +2057,7 @@ dcp::note_to_string (VerificationNote note) ); case VerificationNote::Code::INCORRECT_SUBTITLE_NAMESPACE_COUNT: return String::compose("The XML in the subtitle asset %1 has more than one namespace declaration.", note.note().get()); - case VerificationNote::Code::MISSING_LOAD_FONT: + case VerificationNote::Code::MISSING_LOAD_FONT_FOR_FONT: return String::compose("A subtitle or closed caption refers to a font with ID %1 that does not have a corresponding <LoadFont> node", note.id().get()); } diff --git a/src/verify.h b/src/verify.h index 8a8e77f3..a282d328 100644 --- a/src/verify.h +++ b/src/verify.h @@ -452,7 +452,7 @@ public: * first introduced with a <LoadFont>. * id contains the ID of the <Font> tag. */ - MISSING_LOAD_FONT + MISSING_LOAD_FONT_FOR_FONT, }; VerificationNote (Type type, Code code) diff --git a/test/verify_test.cc b/test/verify_test.cc index a43e989b..05e6ccd9 100644 --- a/test/verify_test.cc +++ b/test/verify_test.cc @@ -3658,7 +3658,7 @@ BOOST_AUTO_TEST_CASE(verify_too_many_subtitle_namespaces) } -BOOST_AUTO_TEST_CASE(verify_missing_load_font) +BOOST_AUTO_TEST_CASE(verify_missing_load_font_for_font) { path const dir("build/test/verify_missing_load_font"); prepare_directory (dir); @@ -3674,7 +3674,7 @@ BOOST_AUTO_TEST_CASE(verify_missing_load_font) check_verify_result ( {dir}, { { dcp::VerificationNote::Type::BV21_ERROR, dcp::VerificationNote::Code::INVALID_STANDARD }, - dcp::VerificationNote(dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::MISSING_LOAD_FONT).set_id("theFontId") + dcp::VerificationNote(dcp::VerificationNote::Type::ERROR, dcp::VerificationNote::Code::MISSING_LOAD_FONT_FOR_FONT).set_id("theFontId") }); } |
