[eeschema] invisible pins are click-to-start-wire targets
Description
Sort of a follow-on to #11771 (closed)
If you hide an NC pin in a symbol, e.g., make it invisible and put it inside the body, and accidentally leave it on-grid, and then place the part and mouse-over where the pin is, eeschema will act as if the pin were visible and offer to start a wire at the pin.
Workaround (and arguably what you should be doing to be safe) is to offset the pin by 0.01mm in both Y and X so it doesn't accidentally get connected.
But I'm not sure if these pins should be interactable in the UI to begin with. Oftentimes there's invisible stacked pins, and I'd expect Kicad to only interact with the visible one, if it makes a difference.
Not really sure if this is a bug or even if it should be fixed, but filing anyway since I noticed the behavior.
Steps to reproduce
- Make a symbol with an invisible pin on-grid
- Place the symbol
- Mouse over where the invisible pin is, and observe behavior.
KiCad Version
Application: KiCad Schematic Editor x86_64 on x86_64
Version: 8.0.0-rc3-61-gb352b1484f, release build
Libraries:
wxWidgets 3.2.1
FreeType 2.11.1
HarfBuzz 2.7.4
FontConfig 2.13.1
libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.16
Platform: Ubuntu 22.04.4 LTS, 64 bit, Little endian, wxGTK, X11, xubuntu, x11
Build Info:
Date: Feb 21 2024 15:27:23
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.74.0
OCC: 7.5.2
Curl: 7.81.0
ngspice: 36
Compiler: GCC 11.4.0 with C++ ABI 1016
Build settings: