Net inspector shows negative track length after deleting length tuned track
Description
When a length tuned track is deleted, the net inspector might show a negative track length, which is impossible. It should be at least some positive value.
Steps to reproduce
- Create a new PCB with some nets. I simply added a single net called TEST
- Lay down some tracks with this net
- Tune the length by pressing 7
- Click on the length tuned part, it should be highlighted
- Drag the control handle to adjust the length tuning
- Ctrl/Cmd-Z to undo the adjustment, the length tuning should still be highlighted, but reverted to initial shape like after step 3/4
- Press delete/backspace to delete the length tuned track. Note how this portion becomes unconnected. Normally pressing delete/backspace key should replace the length tuned track with a straight line
- The track length in the net inspector is now some negative value (probably depending on how many has been deleted)
KiCad Version
Application: KiCad x86_64 on x86_64
Version: 8.0.1, release build
Libraries:
wxWidgets 3.2.4
FreeType 2.13.2
HarfBuzz 8.3.0
FontConfig 2.15.0
libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.51.0
Platform: macOS Ventura Version 13.6.4 (Build 22G513), 64 bit, Little endian, wxMac
Build Info:
Date: Mar 14 2024 14:07:38
wxWidgets: 3.2.4 (wchar_t,wx containers)
Boost: 1.84.0
OCC: 7.7.2
Curl: 7.87.0
ngspice: 42
Compiler: Clang 14.0.3 with C++ ABI 1002
Build settings: