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 bdffbbd43b
)
This commit is contained in:
parent
a12ae5050a
commit
fec9331b48
|
@ -438,6 +438,14 @@ int SCH_MOVE_TOOL::Main( const TOOL_EVENT& aEvent )
|
||||||
chain_commands = true;
|
chain_commands = true;
|
||||||
break;
|
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 )
|
else if( evt->Action() == TA_CHOICE_MENU_CHOICE )
|
||||||
{
|
{
|
||||||
if( evt->GetCommandId().get() >= ID_POPUP_SCH_SELECT_UNIT_CMP
|
if( evt->GetCommandId().get() >= ID_POPUP_SCH_SELECT_UNIT_CMP
|
||||||
|
|
Loading…
Reference in New Issue