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;