diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index 92b6fa3d03..cbf50fadab 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -2258,10 +2258,13 @@ int DRAWING_TOOL::DrawVia( const TOOL_EVENT& aEvent ) continue; if( item->Type() == PCB_ZONE_T || item->Type() == PCB_FP_ZONE_T ) - continue; + continue; // stitching vias bind to zones, so ignore them + + if( item->Type() == PCB_FOOTPRINT_T || item->Type() == PCB_GROUP_T ) + continue; // check against children, but not against footprint itself if( item->Type() == PCB_FP_TEXT_T && !static_cast( item )->IsVisible() ) - continue; + continue; // ignore hidden items if( checkedItems.count( item ) ) continue;