From 5c3bcb09faf6dd63e009ab2b721671b39570fb40 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sat, 8 Aug 2020 16:21:14 +0100 Subject: [PATCH] Give the length tuning tool an inital end point that isn't the start point Using the starting point as the end point means that the tool initializes with 0 length traces and so nothing is visible. Fixes https://gitlab.com/kicad/code/kicad/issues/1912 --- pcbnew/router/length_tuner_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/router/length_tuner_tool.cpp b/pcbnew/router/length_tuner_tool.cpp index 2d95918319..f588606827 100644 --- a/pcbnew/router/length_tuner_tool.cpp +++ b/pcbnew/router/length_tuner_tool.cpp @@ -163,7 +163,7 @@ void LENGTH_TUNER_TOOL::performTuning() placer->UpdateSettings( m_savedMeanderSettings ); - VECTOR2I end( m_startSnapPoint ); + VECTOR2I end = getViewControls()->GetMousePosition(); // Create an instance of PNS_TUNE_STATUS_POPUP. // DO NOT create it on the stack: otherwise on Windows, wxWidgets 3.1.3