Crash when selecting track segments or footprints and dragging

Description

image

Steps to reproduce

  1. Open any project and board
  2. Hover over any track and press U to select the whole track. Or just select any two segments of the track. Or select any two footprints.
  3. Press D to drag <- crashes here

KiCad Version

Application: KiCad (64-bit)

Version: (6.0.8-rc1-1709-gb368df74cb), release build

Libraries:
	wxWidgets 3.2.1
	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: Oct  5 2022 06:10:46
	wxWidgets: 3.2.1 (wchar_t,wx containers)
	Boost: 1.79.0
	OCC: 7.6.0
	Curl: 7.83.1-DEV
	ngspice: 37
	Compiler: Visual C++ 1933 without C++ ABI

Build settings:
	KICAD_USE_OCC=ON
	KICAD_SPICE=ON
Edited by dsa-t