When routing a track to a pad, "Switch Track Posture" requires two invocations in some cases.
Description
When starting routing a track with one posture, but finishing at a pad with another posture (switched automatically), / (Switch Track Posture) needs to be pressed twice to switch the track posture (when the cursor is at the pad).
Steps to reproduce
- Delete these two track segments from pic_programmer demo project
- Start routing the track like this
- Move the cursor to attach the track to the pad
- Press / on keyboard to switch posture. At this point, I expect the track to switch posture, but it doesn't.
- Only after another press of / key, the track switches posture:
KiCad Version
Application: KiCad PCB Editor (64-bit)
Version: (6.0.7), release build
Libraries:
wxWidgets 3.1.7
libcurl/7.83.1-DEV Schannel zlib/1.2.12
Platform: Windows 10 (build 19044), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Aug 24 2022 19:27:26
wxWidgets: 3.1.7 (wchar_t,wx containers)
Boost: 1.79.0
OCC: 7.6.0
Curl: 7.83.1-DEV
ngspice: 37
Compiler: Visual C++ 1932 without C++ ABI
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON