diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-11-19 09:05:57 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-11-20 00:15:29 +0100 |
| commit | 159a5e4d3fb4c06d75440fd6edf40df7024afea1 (patch) | |
| tree | 0dbe5340916b74e114e1e389f164ac369dd681f7 | |
| parent | 7b8f3de97be7d8799e40a4a60e2ad5d35fb3456d (diff) | |
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.
| -rw-r--r-- | src/lib/content.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |
