From a073a90c456c600cd6c6e40140c49704491d9d61 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 3 Mar 2017 10:56:46 +0100 Subject: [PATCH] Remove BOARD::SetBoundingBox() Bounding box should be computed basing on the items belonging to the board. --- pcbnew/autorouter/routing_matrix.cpp | 2 -- pcbnew/class_board.h | 2 -- pcbnew/legacy_plugin.cpp | 12 ++++-------- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/pcbnew/autorouter/routing_matrix.cpp b/pcbnew/autorouter/routing_matrix.cpp index 94163641e1..470b3990e9 100644 --- a/pcbnew/autorouter/routing_matrix.cpp +++ b/pcbnew/autorouter/routing_matrix.cpp @@ -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; diff --git a/pcbnew/class_board.h b/pcbnew/class_board.h index 07a95d036f..732266b983 100644 --- a/pcbnew/class_board.h +++ b/pcbnew/class_board.h @@ -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; /** diff --git a/pcbnew/legacy_plugin.cpp b/pcbnew/legacy_plugin.cpp index 21026b155d..68e5b40677 100644 --- a/pcbnew/legacy_plugin.cpp +++ b/pcbnew/legacy_plugin.cpp @@ -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