summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/dcp_content.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc
index bbe90d1a4..0aeb1d041 100644
--- a/src/lib/dcp_content.cc
+++ b/src/lib/dcp_content.cc
@@ -851,6 +851,11 @@ DCPContent::check_font_ids()
return;
}
+ /* This might be called on a TextContent that already has the correct fonts
+ * (e.g. if run from a build with a LastWrittenBy containing only a git hash)
+ * so we'll get an error if we don't clear them out first.
+ */
+ text[0]->clear_fonts();
DCPExaminer examiner(shared_from_this(), true);
examiner.add_fonts(text[0]);
}