Issue with local ratsnest tool when global ratsnest is toggled while active
Description
If the global ratsnest is toggled while the local ratsnest tool is active, clicking on empty space will have the wrong behaviour. Instead of reseting the local ratsnest, it also resets the global ratsnest to the state it was in when the tool is activated.
Steps to reproduce
- Select local ratsnest tool
- Click global ratsnest button on the left toolbar
- Click blank space on the canvas, global ratsnest lines are reset
Easier to see what happens on this video. I'm clicking when the mouse moves from the left toolbar back to the PCB area: 2021-01-15_20-00-32.mkv
KiCad Version
Application: Pcbnew
Version: (5.99.0-8434-g2d282b8b19), debug build
Libraries:
wxWidgets 3.0.5
libcurl/7.74.0 OpenSSL/1.1.1i zlib/1.2.11 zstd/1.4.5 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.41.0
Platform: Linux 5.10.5-zen1-1-zen x86_64, 64 bit, Little endian, wxGTK, , tty
Build Info:
Date: Jan 15 2021 19:32:03
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.75.0
OCC: 7.5.0
Curl: 7.74.0
ngspice: 33
Compiler: GCC 10.2.0 with C++ ABI 1014
Build settings:
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
KICAD_USE_OCC=ON
KICAD_SPICE=ON
KICAD_STDLIB_DEBUG=OFF
KICAD_STDLIB_LIGHT_DEBUG=OFF
KICAD_SANITIZE=OFF