From 159a5e4d3fb4c06d75440fd6edf40df7024afea1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 19 Nov 2025 09:05:57 +0100 Subject: Use relative_path(). Paths that cannot be made relative (e.g. X:\foo relative to C:\bar) are returned as empty by boost, and to be honest it's hard to think of a worse way to solve that particular problem. --- src/lib/content.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/content.cc b/src/lib/content.cc index ac87c6e79..76b8eb666 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -138,7 +138,7 @@ Content::as_xml(xmlpp::Element* element, bool with_paths, PathBehaviour path_beh auto path = _paths[i]; if (path_behaviour == PathBehaviour::MAKE_RELATIVE) { DCPOMATIC_ASSERT(film_directory); - path = boost::filesystem::relative(path, *film_directory); + path = relative_path(path, *film_directory); } auto p = cxml::add_child(element, "Path"); p->add_child_text(path.string()); -- cgit v1.2.3