Fully cancel copy with reference

Tool needs to be popped when cancelling to allow selection tool to work properly.

Fixes https://gitlab.com/kicad/code/kicad/issues/9353
This commit is contained in:
Seth Hillbrand 2021-10-10 08:30:27 -07:00
parent 4d89061d4c
commit 62cb5d9354
1 changed files with 3 additions and 0 deletions

View File

@ -2458,7 +2458,10 @@ int EDIT_TOOL::copyToClipboard( const TOOL_EVENT& aEvent )
_( "Selection copied" ),
_( "Copy canceled" ),
refPoint ) )
{
frame()->PopTool( tool );
return 0;
}
}
else
{