diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index 61c07c6d28..733815a7d1 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -2553,6 +2553,8 @@ int DRAWING_TOOL::DrawVia( const TOOL_EVENT& aEvent ) via->SetNetCode( track->GetNetCode() ); else if( pad ) via->SetNetCode( pad->GetNetCode() ); + else + via->SetNetCode( findStitchedZoneNet( via ) ); if( !m_allowDRCViolations && checkDRCViolation( via ) ) {