From a1a48a4c42e419dfbb5c8a4b5b57fb53885939f5 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 13 Jun 2021 20:18:17 +0100 Subject: [PATCH] Don't allow rotation/mirroring while dragging. Fixes https://gitlab.com/kicad/code/kicad/issues/8523 --- eeschema/tools/sch_move_tool.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/eeschema/tools/sch_move_tool.cpp b/eeschema/tools/sch_move_tool.cpp index be3bb84e2a..b5605e9131 100644 --- a/eeschema/tools/sch_move_tool.cpp +++ b/eeschema/tools/sch_move_tool.cpp @@ -415,6 +415,22 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent ) chain_commands = true; break; } + else if( evt->IsAction( &EE_ACTIONS::rotateCW ) + || evt->IsAction( &EE_ACTIONS::rotateCCW ) + || evt->IsAction( &EE_ACTIONS::mirrorH ) + || evt->IsAction( &EE_ACTIONS::mirrorV ) ) + { + if( m_isDrag ) + { + // These are just going to make a mess, so eat them without doing anything. + wxBell(); + } + else + { + // Allow operations while moving + evt->SetPassEvent(); + } + } else if( evt->Action() == TA_CHOICE_MENU_CHOICE ) { if( evt->GetCommandId().get() >= ID_POPUP_SCH_SELECT_UNIT_CMP