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:
parent
50a9a6e1f7
commit
6536b4766c
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue