From 90f03849c0041db96cf5a102747f0794f6403e32 Mon Sep 17 00:00:00 2001 From: maj00r Date: Fri, 2 Oct 2026 22:53:04 +0200 Subject: [PATCH] fix(editor): keep straight handle selected after drag --- application/editormodetrack.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/editormodetrack.cpp b/application/editormodetrack.cpp index 5e412fa8..f02ca018 100644 --- a/application/editormodetrack.cpp +++ b/application/editormodetrack.cpp @@ -1380,7 +1380,8 @@ bool editor_mode::pick_straight_handle() void editor_mode::straight_refresh() { auto &state{m_straights}; - state.current_for = nullptr; + state.current_for = selected_track(); + state.current = state.current_for != nullptr ? editor_track::find_straight(*state.current_for, state.tolerance) : editor_track::straight{}; for (auto *line : {&state.a, &state.b}) if (false == line->tracks.empty()) *line = editor_track::find_straight(*line->tracks.front(), state.tolerance);