From 3d11ce513937c0554f0c4d9a56b682679f65ba5b Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 31 Jan 2022 19:53:02 +0100 Subject: [PATCH] export D356 netlist: fix incorrect id for pads type connectors. these pads are similar to SMD pads and should have the same id. Fixes #10694 https://gitlab.com/kicad/code/kicad/issues/10694 --- pcbnew/exporters/export_d356.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/exporters/export_d356.cpp b/pcbnew/exporters/export_d356.cpp index 9d3748a3ed..81ddc198d3 100644 --- a/pcbnew/exporters/export_d356.cpp +++ b/pcbnew/exporters/export_d356.cpp @@ -114,7 +114,8 @@ static void build_pad_testpoints( BOARD *aPcb, std::vector & aRecor const wxSize& drill = pad->GetDrillSize(); rk.drill = std::min( drill.x, drill.y ); rk.hole = (rk.drill != 0); - rk.smd = pad->GetAttribute() == PAD_ATTRIB::SMD; + rk.smd = pad->GetAttribute() == PAD_ATTRIB::SMD + || pad->GetAttribute() == PAD_ATTRIB::CONN; rk.mechanical = ( pad->GetAttribute() == PAD_ATTRIB::NPTH ); rk.x_location = pad->GetPosition().x - origin.x; rk.y_location = origin.y - pad->GetPosition().y;