diff --git a/pcbnew/router/length_tuner_tool.cpp b/pcbnew/router/length_tuner_tool.cpp index cd44879c6a..b3f54feb9e 100644 --- a/pcbnew/router/length_tuner_tool.cpp +++ b/pcbnew/router/length_tuner_tool.cpp @@ -150,7 +150,9 @@ void LENGTH_TUNER_TOOL::performTuning() controls()->ForceCursorPosition( false ); controls()->SetAutoPan( true ); - if( !m_router->StartRouting( m_startSnapPoint, m_startItem, 0 ) ) + int layer = m_startItem ? m_startItem->Layer() : static_cast( frame()->GetActiveLayer() ); + + if( !m_router->StartRouting( m_startSnapPoint, m_startItem, layer ) ) { frame()->ShowInfoBarMsg( m_router->FailureReason() ); highlightNet( false );