﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
19217	Split way: Wrong position of new member under special conditions of route relation	skyper	team	"This is a followup of #18596 and might be related to #18018.

Please, use attached example file: [attachment:josm_split_way_relation_order.osm josm_split_way_relation_order.osm]

==== What steps will reproduce the problem?
1. Open road relation ""A 1"" in relation editor and look at the order
1. Select node ""split"" and split way
1. Reload data in relation editor and look at the order

==== What is the expected result?
The new member should be added in between the last ""forward"" member and the last member with empty role

==== What happens instead?
The new member is added behind the last member with empty role

==== Please provide any additional information below. Attach a screenshot if possible.
`link` is used in route relations and should only be considered to connect with other members with role `link`. For empty role members they should be the last option.

The bus relation ""1"" shows the same issue but without `link`.

In both cases, it is not needed to look at the relation list neighbor below as the correct position can already be determined by the neighbor above which is connected.

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-05-10 15:58:34 +0200 (Sun, 10 May 2020)
Revision:16402
Build-Date:2020-05-11 01:30:50
URL:https://josm.openstreetmap.de/svn/trunk
}}}
"	defect	new	normal		Core	latest		template_report split way route relation order	
