From fec9331b48cbea4d1cce981cf2f67e3d08473dd7 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 21 Jul 2022 13:35:35 +0100 Subject: [PATCH] Handle rotation while moving from move tool. This keeps us from getting CancelInteractive events in the move tool when the EditTool runs to do the rotate. Fixes https://gitlab.com/kicad/code/kicad/issues/12004 (cherry picked from commit bdffbbd43b0bc67fb6c079ebbfff784abb76eee4) --- eeschema/tools/sch_move_tool.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eeschema/tools/sch_move_tool.cpp b/eeschema/tools/sch_move_tool.cpp index 9189052f36..f66b97a056 100644 --- a/eeschema/tools/sch_move_tool.cpp +++ b/eeschema/tools/sch_move_tool.cpp @@ -438,6 +438,14 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent ) chain_commands = true; break; } + else if( evt->IsAction( &EE_ACTIONS::rotateCW ) ) + { + m_toolMgr->RunAction( EE_ACTIONS::rotateCW, true ); + } + else if( evt->IsAction( &EE_ACTIONS::rotateCCW ) ) + { + m_toolMgr->RunAction( EE_ACTIONS::rotateCCW, true ); + } else if( evt->Action() == TA_CHOICE_MENU_CHOICE ) { if( evt->GetCommandId().get() >= ID_POPUP_SCH_SELECT_UNIT_CMP