fix canonicalization of relationship chains when the last link is absolute

This commit is contained in:
Thomas Fussell 2017-06-14 15:44:19 -04:00
parent 2c5d579a1b
commit d14f8c2e5f

View File

@ -39,6 +39,11 @@ void manifest::clear()
path manifest::canonicalize(const std::vector<xlnt::relationship> &rels) const
{
if (rels.back().target().path().is_absolute())
{
return rels.back().target().path().relative_to(path("/"));
}
xlnt::path relative;
for (auto component : rels)