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:
parent
53770fec68
commit
c9fc15b5eb
|
@ -438,6 +438,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