summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dcp_content.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc
index cad775b24..7d835e618 100644
--- a/src/lib/dcp_content.cc
+++ b/src/lib/dcp_content.cc
@@ -831,8 +831,9 @@ add_fonts_from_examiner(shared_ptr<TextContent> text, vector<vector<shared_ptr<F
* by prepending the reel number. We do the same disambiguation when emitting the
* subtitles in the DCP decoder.
*/
- font->set_id(id_for_font_in_reel(font->id(), reel_number));
- text->add_font(font);
+ auto font_copy = make_shared<dcpomatic::Font>(*font);
+ font_copy->set_id(id_for_font_in_reel(font->id(), reel_number));
+ text->add_font(font_copy);
}
++reel_number;
}