Skip to content

Footprint editor: Custom pad shape issue with "offset shape from hole" setting

Description

When making a custom-shaped pad, if the root pad has the "offset shape from hole" parameter set, the pad position glitches out when exiting edit mode:

Root pad has an offset (image taken in pad edit mode):
image

Let's make a kite-shaped pad for this example (image taken in pad edit mode):
image

Exit pad edit mode, and... (image taken out of pad edit mode):
image

Now it's running into pad 35!

Steps to reproduce

  1. Make a pad with something nonzero in the "offset shape from hole" setting.
  2. Select the pad and press Ctrl-E to enter pad edit mode.
  3. Draw whatever shapes you like. (note: You can also set the "offset shape from hole" setting on the root pad here instead, if you like.)
  4. Press Ctrl-E to exit pad edit mode.
  5. Everything but the root pad teleports over a distance equal to the offset parameter.

KiCad Version

Application: KiCad Footprint Editor x64 on x64

Version: 7.0.7, release build

Libraries:
	wxWidgets 3.2.2
	FreeType 2.12.1
	HarfBuzz 6.0.0
	FontConfig 2.14.1
	libcurl/7.88.1-DEV Schannel zlib/1.2.13

Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info:
	Date: Aug 14 2023 02:42:39
	wxWidgets: 3.2.2 (wchar_t,wx containers)
	Boost: 1.81.0
	OCC: 7.7.1
	Curl: 7.88.1-DEV
	ngspice: 40
	Compiler: Visual C++ 1936 without C++ ABI

Build settings:
	KICAD_SPICE=ON