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-16 13:45:32 +01:00
committed by Maciej Suminski
parent 433b2bff40
commit d4ddc009e1
-3
View File
@@ -1303,9 +1303,6 @@ double MODULE::CoverageRatio() const
for( D_PAD* pad = m_Pads; pad; pad = pad->Next() )
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_Value->GetBoundingBox() );