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
This commit is contained in:
parent
4bcfa8df1f
commit
9a2332dfcf
|
@ -385,6 +385,7 @@ int EE_POINT_EDITOR::Main( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
controls->SetAutoPan( false );
|
controls->SetAutoPan( false );
|
||||||
controls->CaptureCursor( false );
|
controls->CaptureCursor( false );
|
||||||
|
setEditedPoint( nullptr );
|
||||||
|
|
||||||
if( m_editPoints )
|
if( m_editPoints )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue