From 8367fd81e0860ae6657c9caf315ad7085e47ec0c Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Sun, 2 May 2010 14:03:46 +0000 Subject: [PATCH] Add further details into the splitWay relations handling section --- .../halcyon/connection/actions/SplitWayAction.as | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/net/systemeD/halcyon/connection/actions/SplitWayAction.as b/net/systemeD/halcyon/connection/actions/SplitWayAction.as index 0cf03d98..ef1e8dbc 100644 --- a/net/systemeD/halcyon/connection/actions/SplitWayAction.as +++ b/net/systemeD/halcyon/connection/actions/SplitWayAction.as @@ -24,9 +24,14 @@ package net.systemeD.halcyon.connection.actions { selectedWay.deleteNodesFrom(selectedWay.indexOfNode(selectedNode)+1, push); // copy relations - // TODO make this reversible + // FIXME make this reversible + // FIXME needs to copy roles as well + // FIXME needs to insert the new way in the correct position in + // the relation, in order to not destroy ordered route relations. + // This will either be before, or after, the selectedWay, depending + // on the relative sequence of the relation members compared to the + // direction of selectedWay. for each (var r:Relation in selectedWay.parentRelations) { - // ** needs to copy roles as well r.appendMember(new RelationMember(newWay, '')); } } -- 2.37.0