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

fixed link fromGroup location-iterator to use instance

parent 4c60a089
No related branches found
No related tags found
No related merge requests found
......@@ -126,8 +126,10 @@ export namespace LinkIterator {
const unit = group.units[0]
const groupCount = Unit.isAtomic(unit) ? unit.links.edgeCount * 2 : 0
const instanceCount = group.units.length
const location = StructureElement.create(unit)
const getLocation = (groupIndex: number) => {
const location = StructureElement.create()
const getLocation = (groupIndex: number, instanceIndex: number) => {
const unit = group.units[instanceIndex]
location.unit = unit
location.element = unit.elements[(unit as Unit.Atomic).links.a[groupIndex]]
return location
}
......
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