﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
21856	[PATCH] Split way: Wrong position of new member in PTv2 relation splitting a loop	skyper	team	"==== What steps will reproduce the problem?
1. Have an ordered PTv2 relation containing a small loop, see [attachment:ptv2_relation_loop_split.osm.xz]
1. Split the loop (at the node `Split`)

==== What is the expected result?
The new member is added at the correct position.

==== What happens instead?
The new member is added at the wrong position leading to a gap.

==== Please provide any additional information below. Attach a screenshot if possible.
Similar to #19288 and not new, but I stumbled over it again.
It does not matter which of the two parts keeps the existing OSM id.
{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2022-02-10 22:03:15 +0100 (Thu, 10 Feb 2022)
Revision:18379
Build-Date:2022-02-11 02:31:13
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18379 en) Linux Debian GNU/Linux 11 (bullseye)
Java version: 17.0.2+8-Debian-1deb11u1, Debian, OpenJDK 64-Bit Server VM
}}}
"	defect	closed	major	24.08	Core	latest	fixed	template_report split way route relation order member loop	
