PCB editor: Routed length calculation wrong.

Description

The routed length of a track is calculated wrong, if redundant track are involved.

The marked tracks are part of the length calculation image

This is the correct length

image

Steps to reproduce

KiCad Version

Application: KiCad PCB Editor (64-bit)

Version: (5.99.0-12623-g12b726ba2f), release build

Libraries:
	wxWidgets 3.1.5

Platform: Windows 10 (build 19043), 64-bit edition, 64 bit, Little endian, wxMSW

	wxWidgets: 3.1.5 (wchar_t,wx containers)
	Boost: 1.76.0
	OCC: 7.5.0
	Curl: 7.78.0-DEV
	ngspice: 35
	Compiler: Visual C++ 1929 without C++ ABI

Build settings:
	KICAD_USE_OCC=ON
	KICAD_SPICE=ON