PcbNew 7.0.0: Edge connector pads throw a board edge violation in DRC, which they shouldn't
Description
The documentation says:
Edge Connector pads are SMD pads that are allowed to overlap the board outline on the Edge.Cuts layer.
However, when I create a board with an "Edge Connector" pad that touches the board outline, then run DRC, then I get this DRC error:
[copper_edge_clearance]: Board edge clearance violation (board setup constraints edge clearance 0.2000 mm; actual 0.0000 mm) Rule: board setup constraints edge; Severity: error @(46.2000 mm, 71.6800 mm): Line on Edge.Cuts @(46.7500 mm, 78.7000 mm): Pad B1 [GND] of J3 on F.Cu
This error should be automatically suppressed for pads set as type "Edge Connector".
Issue #10970 (closed) was very similar, it covered pads that are castellated holes. So the fix from commit 2ec21c77 can probably be extended to support "Edge Connector" pads too. (Not tested).
Steps to reproduce
- create a component with an "Edge Connector" pad
- create a new board
- add that component
- add a board outline
- move the component so the "Edge Connector" pad touches the board outline
- run DRC
KiCad Version
Application: KiCad PCB Editor x64 on x64
Version: (7.0.0), release build
Libraries:
wxWidgets 3.2.1
FreeType 2.12.1
HarfBuzz 5.0.1
FontConfig 2.14.1
libcurl/7.83.1-DEV Schannel zlib/1.2.13
Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Feb 12 2023 01:35:19
wxWidgets: 3.2.1 (wchar_t,wx containers)
Boost: 1.80.0
OCC: 7.6.2
Curl: 7.83.1-DEV
ngspice: 39
Compiler: Visual C++ 1934 without C++ ABI
Build settings:
KICAD_SPICE=ON