PCBNew - trying to highlight a net on the bottom lay highlights the one on the top layer instead

Description

If two pads located on the top and the bottom layers overlap and you edit the bottom layer (high contrast mode, if it matters), and you place cursor over the pad (or even click on it to select it) and then hit hot key to highlight the net ("`") the net for the pad on the top layer (below it) gets highlighted instead.

Steps to reproduce

  1. Place two SMD footprints one on top layer and the other on the bottom so their pads (belonging to different nets) overlap.
  2. Switch to the bottom layer select the overlapping pad and hit highlight net shortcut (or use highlight all the copper belonging to a net tool)

KiCad Version

Application: KiCad
Version: (5.99.0-1452-gb67f18b39), 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 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    Build date: Apr 28 2020 21:01:01
    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:
    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 Art