PcbEditor "Undo last segment" works incorrectly sometime.
Description
Steps to reproduce
1.2021-07-10_17-40-00 2.test1.zip
KiCad Version
Application: KiCad (64-bit)
Version: (5.99.0-11393-ga06b95bb1f), release build
Libraries:
wxWidgets 3.1.5
libcurl/7.74.0-DEV Schannel zlib/1.2.11
Platform: Windows 10 (build 19042), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Jul 10 2021 09:00:17
wxWidgets: 3.1.5 (wchar_t,STL containers)
Boost: 1.75.0
OCC: 7.5.0
Curl: 7.74.0-DEV
ngspice: 34
Compiler: Visual C++ 1928 without C++ ABI
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON