From cac334bb45ce663554e5f424779d20fac22dd3db Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 23 Aug 2025 07:43:36 -0700 Subject: [PATCH] Enforce board-level hole to hole on diff pairs Makes the router behave like the DRC Fixes https://gitlab.com/kicad/code/kicad/-/issues/21240 --- pcbnew/router/pns_kicad_iface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/router/pns_kicad_iface.cpp b/pcbnew/router/pns_kicad_iface.cpp index 5bde1a01aa..b4a2e9b835 100644 --- a/pcbnew/router/pns_kicad_iface.cpp +++ b/pcbnew/router/pns_kicad_iface.cpp @@ -861,7 +861,7 @@ bool PNS_KICAD_IFACE_BASE::ImportSizes( PNS::SIZES_SETTINGS& aSizes, PNS::ITEM* holeToHoleMin = constraint.m_Value.Min(); } - aSizes.SetDiffPairHoleToHole( holeToHoleMin ); + aSizes.SetDiffPairHoleToHole( std::max( holeToHoleMin, aSizes.GetHoleToHole() ) ); return true; }