diff --git a/pcbnew/tools/grid_helper.cpp b/pcbnew/tools/grid_helper.cpp index 2fb6d2e3d3..c697e76730 100644 --- a/pcbnew/tools/grid_helper.cpp +++ b/pcbnew/tools/grid_helper.cpp @@ -43,6 +43,7 @@ using namespace std::placeholders; #include #include #include +#include #include #include @@ -275,6 +276,13 @@ std::set GRID_HELPER::queryVisible( const BOX2I& aArea, { BOARD_ITEM* item = static_cast( it.first ); + // If we are in the footprint editor, don't use the footprint itself + if( static_cast( m_toolMgr->GetCurrentTool() )->IsFootprintEditor() + && item->Type() == PCB_FOOTPRINT_T ) + { + continue; + } + // The item must be visible and on an active layer if( view->IsVisible( item ) && ( !isHighContrast || activeLayers.count( it.second ) )