diff --git a/pcbnew/board.cpp b/pcbnew/board.cpp index d101588447..2a64baae0c 100644 --- a/pcbnew/board.cpp +++ b/pcbnew/board.cpp @@ -1578,9 +1578,6 @@ BOX2I BOARD::ComputeBoundingBox( bool aBoardEdgesOnly, bool aIncludeHiddenText ) // Check footprints for( FOOTPRINT* footprint : m_footprints ) { - if( !( footprint->GetLayerSet() & visible ).any() ) - continue; - if( aBoardEdgesOnly ) { for( const BOARD_ITEM* edge : footprint->GraphicalItems() ) @@ -1589,7 +1586,7 @@ BOX2I BOARD::ComputeBoundingBox( bool aBoardEdgesOnly, bool aIncludeHiddenText ) bbox.Merge( edge->GetBoundingBox() ); } } - else + else if( ( footprint->GetLayerSet() & visible ).any() ) { bbox.Merge( footprint->GetBoundingBox( true, aIncludeHiddenText ) ); }