Cleanup.
This commit is contained in:
parent
1926af0c34
commit
921181b20b
|
@ -145,7 +145,7 @@ const EDA_RECT NETINFO_ITEM::GetBoundingBox() const
|
|||
auto connectivity = GetBoard()->GetConnectivity();
|
||||
|
||||
std::vector<BOARD_CONNECTED_ITEM*> items = connectivity->GetNetItems( m_netCode, types );
|
||||
EDA_RECT bbox = EDA_RECT( wxPoint( 0, 0 ), wxPoint( 0, 0 ) );
|
||||
EDA_RECT bbox = EDA_RECT( VECTOR2I( 0, 0 ), VECTOR2I( 0, 0 ) );
|
||||
|
||||
if( items.size() >= 1 )
|
||||
{
|
||||
|
|
|
@ -527,7 +527,7 @@ void PAD::BuildEffectiveShapes( PCB_LAYER_ID aLayer ) const
|
|||
}
|
||||
|
||||
BOX2I bbox = m_effectiveShape->BBox();
|
||||
m_effectiveBoundingBox = EDA_RECT( bbox.GetPosition(), VECTOR2I( bbox.GetWidth(), bbox.GetHeight() ) );
|
||||
m_effectiveBoundingBox = EDA_RECT( bbox );
|
||||
|
||||
// Hole shape
|
||||
VECTOR2I half_size = m_drill / 2;
|
||||
|
@ -539,7 +539,7 @@ void PAD::BuildEffectiveShapes( PCB_LAYER_ID aLayer ) const
|
|||
m_effectiveHoleShape = std::make_shared<SHAPE_SEGMENT>( m_pos - half_len, m_pos + half_len,
|
||||
half_width * 2 );
|
||||
bbox = m_effectiveHoleShape->BBox();
|
||||
m_effectiveBoundingBox.Merge( EDA_RECT( bbox.GetPosition(), VECTOR2I( bbox.GetWidth(), bbox.GetHeight() ) ) );
|
||||
m_effectiveBoundingBox.Merge( EDA_RECT( bbox ) );
|
||||
|
||||
// All done
|
||||
m_shapesDirty = false;
|
||||
|
|
Loading…
Reference in New Issue