Remove BOARD::SetBoundingBox()

Bounding box should be computed basing on the items belonging to the
board.
This commit is contained in:
Maciej Suminski 2017-03-03 10:56:46 +01:00
parent 88f7c55d95
commit a073a90c45
3 changed files with 4 additions and 12 deletions

View File

@ -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;

View File

@ -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;
/**

View File

@ -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