mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Fix relationship sorting
This commit is contained in:
parent
10c5781e6d
commit
5a44433291
|
@ -1617,9 +1617,9 @@ struct rel_id_sorter
|
|||
bool operator()(const xlnt::relationship &lhs, const xlnt::relationship &rhs)
|
||||
{
|
||||
// format is rTd<decimal number 1..n>
|
||||
if (lhs.id().size() < rhs.id().size()) // a number with more digits will be larger
|
||||
if (lhs.id().size() != rhs.id().size()) // a number with more digits will be larger
|
||||
{
|
||||
return true;
|
||||
return lhs.id().size() < rhs.id().size();
|
||||
}
|
||||
return lhs.id() < rhs.id();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user