From 66d2cf172d03b97c680875187350139446a19a67 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 29 Oct 2020 22:38:16 +0000 Subject: [PATCH] Clear point editor on undo/redo. Fixes https://gitlab.com/kicad/code/kicad/issues/6224 --- pcbnew/tools/point_editor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pcbnew/tools/point_editor.cpp b/pcbnew/tools/point_editor.cpp index a04943030d..138227dbf6 100644 --- a/pcbnew/tools/point_editor.cpp +++ b/pcbnew/tools/point_editor.cpp @@ -536,8 +536,15 @@ int POINT_EDITOR::OnSelectionChange( const TOOL_EVENT& aEvent ) break; } + else if( evt->Action() == TA_UNDO_REDO_POST ) + { + break; + } + else + { evt->SetPassEvent(); + } } if( m_editPoints )