Remove BOARD::SetBoundingBox()
Bounding box should be computed basing on the items belonging to the board.
This commit is contained in:
parent
88f7c55d95
commit
a073a90c45
|
@ -86,8 +86,6 @@ bool MATRIX_ROUTING_HEAD::ComputeMatrixSize( BOARD* aPcb, bool aUseBoardEdgesOnl
|
|||
|
||||
m_BrdBox.SetEnd( end );
|
||||
|
||||
aPcb->SetBoundingBox( m_BrdBox );
|
||||
|
||||
m_Nrows = m_BrdBox.GetHeight() / m_GridRouting;
|
||||
m_Ncols = m_BrdBox.GetWidth() / m_GridRouting;
|
||||
|
||||
|
|
|
@ -850,8 +850,6 @@ public:
|
|||
return ComputeBoundingBox( true );
|
||||
}
|
||||
|
||||
void SetBoundingBox( const EDA_RECT& aBox ) { m_BoundingBox = aBox; }
|
||||
|
||||
void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
|
||||
|
||||
/**
|
||||
|
|
|
@ -660,14 +660,10 @@ void LEGACY_PLUGIN::loadGENERAL()
|
|||
|
||||
else if( TESTLINE( "Di" ) )
|
||||
{
|
||||
BIU x1 = biuParse( line + SZ( "Di" ), &data );
|
||||
BIU y1 = biuParse( data, &data );
|
||||
BIU x2 = biuParse( data, &data );
|
||||
BIU y2 = biuParse( data );
|
||||
|
||||
EDA_RECT bbbox( wxPoint( x1, y1 ), wxSize( x2-x1, y2-y1 ) );
|
||||
|
||||
m_board->SetBoundingBox( bbbox );
|
||||
biuParse( line + SZ( "Di" ), &data );
|
||||
biuParse( data, &data );
|
||||
biuParse( data, &data );
|
||||
biuParse( data );
|
||||
}
|
||||
|
||||
/* This is no more usefull, so this info is no more parsed
|
||||
|
|
Loading…
Reference in New Issue