- Better way to iterate on vias in the track list (GetFirstVia)
- Converted the Next/Prev C casts to static casts and removed the type unsafe ones - Splitted as virtual the VIA::Flip member instead of using RTTI - Heavily refactored the 'unconnected track' cleanup routine - Misc constification
This commit is contained in:
@@ -422,9 +422,12 @@ EDA_RECT MODULE::GetFootprintRect() const
|
||||
area.SetEnd( m_Pos );
|
||||
area.Inflate( Millimeter2iu( 0.25 ) ); // Give a min size to the area
|
||||
|
||||
for( EDGE_MODULE* edge = (EDGE_MODULE*) m_Drawings.GetFirst(); edge; edge = edge->Next() )
|
||||
if( edge->Type() == PCB_MODULE_EDGE_T )
|
||||
for( const BOARD_ITEM* item = m_Drawings.GetFirst(); item; item = item->Next() )
|
||||
{
|
||||
const EDGE_MODULE *edge = dynamic_cast<const EDGE_MODULE*>( item );
|
||||
if( edge )
|
||||
area.Merge( edge->GetBoundingBox() );
|
||||
}
|
||||
|
||||
for( D_PAD* pad = m_Pads; pad; pad = pad->Next() )
|
||||
area.Merge( pad->GetBoundingBox() );
|
||||
|
||||
Reference in New Issue
Block a user