Save selection *before* clearing it. Saving after doesn't do much good.
Fixes https://gitlab.com/kicad/code/kicad/issues/11242
(cherry picked from commit 1751c8e1cf
)
This commit is contained in:
parent
1a6e9538cd
commit
3c4f8a335f
|
@ -668,10 +668,11 @@ int SCH_EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
|
|||
}
|
||||
else
|
||||
{
|
||||
EE_SELECTION selectionCopy = selection;
|
||||
|
||||
if( selection.IsHover() )
|
||||
m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true );
|
||||
|
||||
EE_SELECTION selectionCopy = selection;
|
||||
m_toolMgr->RunAction( EE_ACTIONS::trimOverlappingWires, true, &selectionCopy );
|
||||
m_toolMgr->RunAction( EE_ACTIONS::addNeededJunctions, true, &selectionCopy );
|
||||
|
||||
|
|
Loading…
Reference in New Issue