Skip to content
Snippets Groups Projects
Commit fe341f08 authored by Alexander Rose's avatar Alexander Rose
Browse files

fix Bundle.toStructure, #19

parent 34a387d4
No related branches found
No related tags found
No related merge requests found
......@@ -180,9 +180,10 @@ export namespace Bundle {
SortedRanges.forEach(e.ranges, (v, i) => _indices[i] = unit.elements[v])
indices = SortedArray.ofSortedArray(_indices)
} else {
const rangesSize = SortedRanges.size(e.ranges)
SortedRanges.forEach(e.ranges, (v, i) => _indices[i] = unit.elements[v])
SortedRanges.forEach(e.set, (v, i) => _indices[i + rangesSize] = unit.elements[v])
for (let i = 0, il = e.set.length; i < il; ++i) {
_indices[i + rangesSize] = unit.elements[e.set[i]]
}
indices = SortedArray.ofUnsortedArray(_indices) // requires sort
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment