Don't drop selection on an undo/redo.

We want to be able to restore it back to the way it was.

Fixes https://gitlab.com/kicad/code/kicad/issues/5356
This commit is contained in:
Jeff Young 2020-08-26 18:55:12 +01:00
parent 4e885990b8
commit b8aee85b94
1 changed files with 0 additions and 5 deletions

View File

@ -317,11 +317,6 @@ int SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
m_toolMgr->RunAction( PCB_ACTIONS::clearHighlight );
}
else if( evt->Action() == TA_UNDO_REDO_PRE )
{
ClearSelection();
}
else
evt->SetPassEvent();
}