Component on wrong layer is selected when two components are above each other
Description
When two components are on opposite side of the PCB just above each other, by clicking on component the other one than expected is selected (no pop-up menu to solve ambiguous selection is displayed).
Current behavior: Clicking on components (when two components are above each other) selects the one on layer not selected in layer menu on the right.
Expected behavior: Clicking on components (when two components are above each other) selects the one on layer selected in layer menu on the right
Steps to reproduce
- Select desired layer in layer menu on the right
- Click on the component
KiCad Version
Application: KiCad
Version: 5.1.5+dfsg1-2~bpo10+1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.64.0 OpenSSL/1.1.1d zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
Platform: Linux 4.19.0-8-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.67.0
OpenCASCADE Technology: 7.3.0
Curl: 7.64.0
Compiler: GCC 8.3.0 with C++ ABI 1013
Build settings:
USE_WX_GRAPHICS_CONTEXT=OFF
USE_WX_OVERLAY=ON
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
KICAD_SCRIPTING_ACTION_MENU=ON
BUILD_GITHUB_PLUGIN=ON
KICAD_USE_OCE=OFF
KICAD_USE_OCC=ON
KICAD_SPICE=ON