From 3aafa2b574be99585ac7883166ff93061afa14dc Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 26 Jan 2018 15:09:01 +0100 Subject: [PATCH] Clear selection box when another tool is invoked while selecting items --- pcbnew/tools/selection_tool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/selection_tool.cpp b/pcbnew/tools/selection_tool.cpp index b3964b03ca..8c760f6b09 100644 --- a/pcbnew/tools/selection_tool.cpp +++ b/pcbnew/tools/selection_tool.cpp @@ -54,6 +54,7 @@ using namespace std::placeholders; #include #include #include +#include "tool_event_utils.h" #include "selection_tool.h" #include "pcb_bright_box.h" @@ -542,7 +543,7 @@ bool SELECTION_TOOL::selectMultiple() while( OPT_TOOL_EVENT evt = Wait() ) { - if( evt->IsCancel() ) + if( TOOL_EVT_UTILS::IsCancelInteractive( *evt ) ) { cancelled = true; break;