From 2aee47487aa0edce6eccd2b7f2ce9cf3694039e6 Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Thu, 13 Jan 2022 00:42:08 +0100 Subject: [PATCH] pcbnew: consider worst case hole-to-hole clearance in GetBiggestClearanceValue() --- pcbnew/board_design_settings.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/board_design_settings.cpp b/pcbnew/board_design_settings.cpp index 7ab636ebdc..5e54d06cfa 100644 --- a/pcbnew/board_design_settings.cpp +++ b/pcbnew/board_design_settings.cpp @@ -924,6 +924,9 @@ int BOARD_DESIGN_SETTINGS::GetBiggestClearanceValue() const m_DRCEngine->QueryWorstConstraint( EDGE_CLEARANCE_CONSTRAINT, constraint ); biggest = std::max( biggest, constraint.Value().Min() ); + + m_DRCEngine->QueryWorstConstraint( HOLE_TO_HOLE_CONSTRAINT, constraint ); + biggest = std::max( biggest, constraint.Value().Min() ); } return biggest;