Move DeactivateTool until after the block items list has been updated.

Fixes: lp:1825855
* https://bugs.launchpad.net/kicad/+bug/1825855
This commit is contained in:
Jeff Young 2019-04-26 14:49:18 +01:00
parent 50a9a6e1f7
commit 6536b4766c
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,6 @@ bool SCH_EDIT_FRAME::HandleBlockEnd( wxDC* aDC )
BLOCK_COMMAND_T command = block->GetCommand();
m_canvas->CallEndMouseCapture( aDC );
m_toolManager->DeactivateTool();
block->SetState( state );
block->SetCommand( command );
@ -261,6 +260,7 @@ bool SCH_EDIT_FRAME::HandleBlockEnd( wxDC* aDC )
if( block->GetCount() )
{
nextcmd = true;
m_toolManager->DeactivateTool();
block->SetState( STATE_BLOCK_MOVE );
if( block->GetCommand() != BLOCK_DRAG && block->GetCommand() != BLOCK_DRAG_ITEM )