Minor fix in DRC test courtyards.

This commit is contained in:
jean-pierre charras 2017-03-26 08:13:23 +02:00
parent abd61ac1e7
commit 0f0cb64a63
1 changed files with 3 additions and 3 deletions

View File

@ -993,9 +993,9 @@ bool DRC::doFootprintOverlappingDrc()
// Update courtyard polygons, and test for missing courtyard definition: // Update courtyard polygons, and test for missing courtyard definition:
for( MODULE* footprint = m_pcb->m_Modules; footprint; footprint = footprint->Next() ) for( MODULE* footprint = m_pcb->m_Modules; footprint; footprint = footprint->Next() )
{ {
bool diag = footprint->BuildPolyCourtyard(); bool is_ok = footprint->BuildPolyCourtyard();
if( !diag && m_doFootprintOverlapping ) if( !is_ok && m_doFootprintOverlapping )
{ {
msg.Printf( _( "footprint '%s' has malformed courtyard" ), msg.Printf( _( "footprint '%s' has malformed courtyard" ),
footprint->GetReference().GetData() ); footprint->GetReference().GetData() );
@ -1012,7 +1012,7 @@ bool DRC::doFootprintOverlappingDrc()
if( footprint->GetPolyCourtyardFront().OutlineCount() == 0 && if( footprint->GetPolyCourtyardFront().OutlineCount() == 0 &&
footprint->GetPolyCourtyardBack().OutlineCount() == 0 && footprint->GetPolyCourtyardBack().OutlineCount() == 0 &&
!diag ) is_ok )
{ {
msg.Printf( _( "footprint '%s' has no courtyard defined" ), msg.Printf( _( "footprint '%s' has no courtyard defined" ),
footprint->GetReference().GetData() ); footprint->GetReference().GetData() );