Grab & rotate uses wrong coordinates.
Description
When you hover over a schematic symbol and pres "g" for grab, the schematic symbol becomes attached to the cursor and the wires turns into rubber bands so connections are preserved during dragging. However, when in this situation the schematic symbol is also rotated 90 degrees, coordinates get mixed up in some way. With the connector on the left, the wires become detached, and with the TVS diode on the right the polarity is changed which results in a short.
Steps to reproduce
- Draw some schematic.
- Hover over a schematic symbol and press g for grab.
- press r for rotate once to rotate the symbol 90 degrees.
- Place it somewhere with a left click.
This is possibly related to: #8520 (closed) but different enough to make a separate issue out of it. I discovered this after a question for V5.1.10 was posted on the user forum: https://forum.kicad.info/t/grab-rotate-doesnt-keep-wires-connected/29562
KiCad Version
Application: KiCad Schematic Editor
Version: 5.99.0-unknown-3100cd3599~128~ubuntu20.04.1, release build
Libraries:
wxWidgets 3.0.4
Platform: Linux 5.4.0-73-generic x86_64, 64 bit, Little endian, wxGTK, xfce, x11
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.71.0
OCC: 7.3.0
Curl: 7.68.0
ngspice: 31
Compiler: GCC 9.3.0 with C++ ABI 1013
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