From c9fc15b5eb39a9702a992454e1d05dbebb121ed0 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 7 Jan 2022 08:21:41 -0800 Subject: [PATCH] Clear edited point when exiting tool When leaving the main point editor loop, we need to ensure that the edit point is cleared as well. This is usually cleared by a ClearEvent call but in case this is missed, we need to ensure that other tools are not caught out Fixes https://gitlab.com/kicad/code/kicad/issues/10288 (cherry picked from commit 9a2332dfcf187b5267ef9bdada01eb6c7d30abb6) --- eeschema/tools/ee_point_editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/eeschema/tools/ee_point_editor.cpp b/eeschema/tools/ee_point_editor.cpp index 263ee6ea3c..25aa6e9f69 100644 --- a/eeschema/tools/ee_point_editor.cpp +++ b/eeschema/tools/ee_point_editor.cpp @@ -438,6 +438,7 @@ int EE_POINT_EDITOR::Main( const TOOL_EVENT& aEvent ) controls->SetAutoPan( false ); controls->CaptureCursor( false ); + setEditedPoint( nullptr ); if( m_editPoints ) {