“Cleanup Tracks and Vias” tool removes track while merging co-linear tracks
Description
I am trying to test the “Cleanup Tracks and Vias” tool. I have a project upgraded from KiCad 5.1 and the cleanup tool is removing a perfectly fine track:
and as it removes the track it immediately shows a rat nest:
The expected behavior would be to not delete the track as it is not a duplicate.
Steps to reproduce
- Open the board in the zip file
- Run the “Cleanup Tracks and Vias” tool with only "Merge co-linear tracks" selected.
- The mentioned track is deleted
Stripped down project schemav2-debug.zip
@mf_ibfeew suggested in the forums that this may be related to a second zero-length track at the end of the mentioned track - see https://forum.kicad.info/t/cleanup-tracks-and-vias-tool/33570/5?u=kedarius
KiCad Version
Application: KiCad (64-bit)
Version: (6.0.1), release build
Libraries:
wxWidgets 3.1.5
Platform: Windows 8.1 (build 9600), 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