Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -709,15 +709,19 @@ class TopKanteExtensions extends BasisObjektExtensions {
val anschlussOrigin = topKante.getTOPAnschluss(transition)
val anschlussDestination = destination.getTOPAnschluss(transition)

if (anschlussOrigin.point) {
return anschlussDestination.branch
return switch (anschlussOrigin) {
case ENUMTOP_ANSCHLUSS_LINKS,
case ENUMTOP_ANSCHLUSS_RECHTS:
anschlussDestination.point
case ENUMTOP_ANSCHLUSS_SPITZE:
anschlussDestination.branch
case ENUMTOP_ANSCHLUSS_MERIDIANSPRUNG,
case ENUMTOP_ANSCHLUSS_VERBINDUNG,
case ENUMTOP_ANSCHLUSS_STRECKENWECHSEL:
anschlussDestination === anschlussOrigin
default:
false
}

if (anschlussOrigin.branch) {
return anschlussDestination.point
}

return false
}

/**
Expand Down
Loading