diff --git a/pcbnew/drc/drc_engine.cpp b/pcbnew/drc/drc_engine.cpp index d7dc47e437..df310c1fa8 100644 --- a/pcbnew/drc/drc_engine.cpp +++ b/pcbnew/drc/drc_engine.cpp @@ -1080,8 +1080,7 @@ DRC_CONSTRAINT DRC_ENGINE::EvalRules( DRC_CONSTRAINT_T aConstraintType, const BO { if( implicit && ( a_is_non_copper || b_is_non_copper ) ) { - REPORT( _( "Board and netclass clearances apply only between copper " - "items." ) ); + REPORT( _( "Netclass clearances apply only between copper items." ) ); return; } } @@ -1362,6 +1361,13 @@ DRC_CONSTRAINT DRC_ENGINE::EvalRules( DRC_CONSTRAINT_T aConstraintType, const BO constraint.m_Value.SetMin( m_designSettings->m_MinClearance ); } + if( a_is_non_copper || b_is_non_copper ) + { + REPORT( _( "Local and board clearances apply only between copper items." ) ); + constraint.m_Type = NULL_CONSTRAINT; + constraint.m_DisallowFlags = 0; + } + return constraint; } else if( aConstraintType == DIFF_PAIR_GAP_CONSTRAINT ) diff --git a/pcbnew/tools/board_inspection_tool.cpp b/pcbnew/tools/board_inspection_tool.cpp index d0fe03d6e4..9a5acfe845 100644 --- a/pcbnew/tools/board_inspection_tool.cpp +++ b/pcbnew/tools/board_inspection_tool.cpp @@ -782,7 +782,11 @@ int BOARD_INSPECTION_TOOL::InspectClearance( const TOOL_EVENT& aEvent ) r->Report( "" ); - if( clearance < 0 ) + if( constraint.IsNull() ) + { + r->Report( _( "Clearance is 0." ) ); + } + else if( clearance < 0 ) { r->Report( wxString::Format( _( "Resolved clearance: %s; clearance will not be " "tested." ),