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 9a2332dfcf)
This commit is contained in:
Seth Hillbrand 2022-01-07 08:21:41 -08:00
parent 53770fec68
commit c9fc15b5eb
1 changed files with 1 additions and 0 deletions

View File

@ -438,6 +438,7 @@ int EE_POINT_EDITOR::Main( const TOOL_EVENT& aEvent )
controls->SetAutoPan( false );
controls->CaptureCursor( false );
setEditedPoint( nullptr );
if( m_editPoints )
{