diff --git a/pcbnew/generators/pcb_tuning_pattern.cpp b/pcbnew/generators/pcb_tuning_pattern.cpp index 5ef958c462..87b04d5c25 100644 --- a/pcbnew/generators/pcb_tuning_pattern.cpp +++ b/pcbnew/generators/pcb_tuning_pattern.cpp @@ -2376,8 +2376,10 @@ int DRAWING_TOOL::PlaceTuningPattern( const TOOL_EVENT& aEvent ) delete m_tuningPattern; m_tuningPattern = nullptr; } - - break; + else + { + break; + } } else if( evt->IsMotion() ) {