mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
fix canonicalization of relationship chains when the last link is absolute
This commit is contained in:
parent
2c5d579a1b
commit
d14f8c2e5f
|
@ -39,6 +39,11 @@ void manifest::clear()
|
||||||
|
|
||||||
path manifest::canonicalize(const std::vector<xlnt::relationship> &rels) const
|
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;
|
xlnt::path relative;
|
||||||
|
|
||||||
for (auto component : rels)
|
for (auto component : rels)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user