From d4ddc009e155a1b500a6dd91ef139d2cdf0634ba Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 13 Jan 2018 22:28:48 +0000 Subject: [PATCH] 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 --- pcbnew/class_module.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/pcbnew/class_module.cpp b/pcbnew/class_module.cpp index c1faeeaf13..ff8542f84b 100644 --- a/pcbnew/class_module.cpp +++ b/pcbnew/class_module.cpp @@ -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() );