From 0445a9913f1feeef6be28ff31390e99aeaefb733 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 23 Apr 2019 00:10:53 +0100 Subject: [PATCH] Deactivate tool on block action. Fixes: lp:1825855 * https://bugs.launchpad.net/kicad/+bug/1825855 --- eeschema/block.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/block.cpp b/eeschema/block.cpp index b2d643c3e9..a0fcdbaf07 100644 --- a/eeschema/block.cpp +++ b/eeschema/block.cpp @@ -33,7 +33,7 @@ #include #include #include - +#include #include #include #include @@ -201,6 +201,7 @@ 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 );