Via with no net doesn't change its net when moved on top of an item with net
Description
If I have a via which belongs to a net and move it with M onto a copper item which belongs to another net, the via adopts the new net. But if the via didn't have a net before, it doesn't change its net to the new one. In my opinion it should receive the net even if it didn't have a net already.
Steps to reproduce
- Add a new via on top of an empty space so that it doesn't have a net after placing.
- Move it with M.
- Land it on top of a copper item which has a net.
- It still doesn't have a net.
KiCad Version
Application: KiCad PCB Editor
Version: (5.99.0-12652-g0f48522342), release build
Libraries:
wxWidgets 3.0.5
libcurl/7.74.0 OpenSSL/1.1.1j zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.3.0) libssh/0.9.5/openssl/zlib nghttp2/1.43.0 librtmp/2.3
Platform: Linux 5.11.0-36-generic x86_64, 64 bit, Little endian, wxGTK, KDE, x11
Build Info:
Date: Oct 3 2021 20:52:27
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.74.0
OCC: 7.5.2
Curl: 7.74.0
ngspice: 34
Compiler: GCC 10.3.0 with C++ ABI 1014
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON