From 054e20e8fbc04a9a7bb78b2c4a52f9ca9c817df2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 19 Dec 2025 15:15:17 +0100 Subject: Fix truncation of ISDCF name parts that have had things substituted (#3112). --- src/lib/film.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/film.cc b/src/lib/film.cc index 0e9c096fc..1b45d81d4 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -972,9 +972,7 @@ Film::isdcf_name(bool if_created_now) const } } - fixed_name = fixed_name.substr(0, Config::instance()->isdcf_name_part_length()); - - isdcf_name += careful_string_filter(fixed_name, L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-"); + isdcf_name += careful_string_filter(fixed_name, L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-").substr(0, Config::instance()->isdcf_name_part_length()); if (dcp_content_type()) { isdcf_name += "_" + dcp_content_type()->isdcf_name(); -- cgit v1.2.3