Don't include module drawings in coverage ratio calculation.

If we do, we'll almost always conclude that coverage is near 100%
due to the outline drawing.

Fixes: lp:1743164
* https://bugs.launchpad.net/kicad/+bug/1743164
This commit is contained in:
Jeff Young 2018-01-13 22:28:48 +00:00 committed by Maciej Suminski
parent 433b2bff40
commit d4ddc009e1
1 changed files with 0 additions and 3 deletions

View File

@ -1303,9 +1303,6 @@ double MODULE::CoverageRatio() const
for( D_PAD* pad = m_Pads; pad; pad = pad->Next() ) for( D_PAD* pad = m_Pads; pad; pad = pad->Next() )
addRect( holes, pad->GetBoundingBox() ); addRect( holes, pad->GetBoundingBox() );
for( BOARD_ITEM* item = m_Drawings; item; item = item->Next() )
addRect( holes, item->GetBoundingBox() );
addRect( holes, m_Reference->GetBoundingBox() ); addRect( holes, m_Reference->GetBoundingBox() );
addRect( holes, m_Value->GetBoundingBox() ); addRect( holes, m_Value->GetBoundingBox() );