pcbnew: 5.1.5/Win64 -- cannot select track segment with uneven endpoint coordinates
Description
If a track segment have uneven endpoint coordinates, the segment itself cannot be selected by clicking in the middle of the segment. Only when clicking the endpoint, the segment can be selected. When routing a track that joins this segment, also only the endpoints are snapping. Attached is the simplfied kicad_pcb file (select_trace_kicad_bug.zip). In this project, horizontal segments of nets ZD1, ZD3 cannot be selected normally. Problem discussed here: https://forum.kicad.info/t/5-1-5-another-annoying-pcbnew-bug/20407
Currently the segment cannot be selected by clicking anywhere on it. Expect to be able to select the segment by clicking anywhere on its area.
Steps to reproduce
- Attempt to select horizontal segment of ZD1 by clicking on it, using attached file.
- Segment cannot be selected, unlike others.
KiCad Version
Application: KiCad
Version: (5.1.5)-2, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.66.0 OpenSSL/1.1.1d (Schannel) zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.1.1) nghttp2/1.39.2
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.71.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.66.0
Compiler: GCC 9.2.0 with C++ ABI 1013
Build settings:
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=OFF
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=OFF
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=ON
KICAD_USE_OCC=OFF
KICAD_SPICE=ON
Edited by Michal