Don't deselect wires when aligning

This makes undo/redo look really strange as the other elements get
aligned but the wires do not (or rather their unconnected ends do not)

Fixes https://gitlab.com/kicad/code/kicad/issues/9275
This commit is contained in:
Seth Hillbrand 2021-11-30 16:29:27 -08:00
parent c4a6a61743
commit 85ab4e5886
1 changed files with 1 additions and 0 deletions

View File

@ -834,6 +834,7 @@ int SCH_MOVE_TOOL::AlignElements( const TOOL_EVENT& aEvent )
{ {
EDA_ITEMS drag_items{ item }; EDA_ITEMS drag_items{ item };
line->ClearFlags(); line->ClearFlags();
line->SetFlags( SELECTED );
line->SetFlags( flags[ii] ); line->SetFlags( flags[ii] );
getConnectedDragItems( line, pts[ii], drag_items ); getConnectedDragItems( line, pts[ii], drag_items );
std::set<EDA_ITEM*> unique_items( drag_items.begin(), drag_items.end() ); std::set<EDA_ITEM*> unique_items( drag_items.begin(), drag_items.end() );