diff --git a/3d-viewer/3d_canvas/board_adapter.cpp b/3d-viewer/3d_canvas/board_adapter.cpp index 8fc70360c8..194f849a2c 100644 --- a/3d-viewer/3d_canvas/board_adapter.cpp +++ b/3d-viewer/3d_canvas/board_adapter.cpp @@ -277,13 +277,9 @@ void BOARD_ADAPTER::InitSettings( REPORTER* aStatusReporter, REPORTER* aWarningR { wxLogTrace( m_logTrace, wxT( "BOARD_ADAPTER::InitSettings" ) ); - // Calculates the board bounding box - // First, use only the board outlines - EDA_RECT bbbox = m_board->ComputeBoundingBox( true ); - - // If no outlines, use the board with items - if( ( bbbox.GetWidth() == 0 ) && ( bbbox.GetHeight() == 0 ) ) - bbbox = m_board->ComputeBoundingBox( false ); + // Calculates the board bounding box (board outlines + items) + // to ensure any item, even outside the board outlines can be seen + EDA_RECT bbbox = m_board->ComputeBoundingBox( false ); // Gives a non null size to avoid issues in zoom / scale calculations if( ( bbbox.GetWidth() == 0 ) && ( bbbox.GetHeight() == 0 ) ) diff --git a/pcbnew/class_pad.cpp b/pcbnew/class_pad.cpp index 7b7b952254..199dc67453 100644 --- a/pcbnew/class_pad.cpp +++ b/pcbnew/class_pad.cpp @@ -330,7 +330,7 @@ void D_PAD::BuildEffectiveShapes() const for( const std::shared_ptr& primitive : m_editPrimitives ) { for( SHAPE* shape : primitive->MakeEffectiveShapes() ) - {printf("shape %d\n", shape->Type());fflush(0); + { shape->Rotate( -DECIDEG2RAD( m_Orient ) ); shape->Move( shapePos ); add( shape );