Keep re-routed tracks separate from newly-routed.
The former stay in whatever group they were in, the later go in the entered group (if any). Fixes https://gitlab.com/kicad/code/kicad/-/issues/22466
This commit is contained in:
@@ -179,8 +179,8 @@ void BOARD_COMMIT::Push( const wxString& aMessage, int aCommitFlags )
|
||||
BOARD* board = static_cast<BOARD*>( m_toolMgr->GetModel() );
|
||||
PCB_BASE_FRAME* frame = dynamic_cast<PCB_BASE_FRAME*>( m_toolMgr->GetToolHolder() );
|
||||
PCB_SELECTION_TOOL* selTool = m_toolMgr->GetTool<PCB_SELECTION_TOOL>();
|
||||
PCB_GROUP* enteredGroup = selTool ? selTool->GetEnteredGroup() : nullptr;
|
||||
|
||||
PCB_GROUP* enteredGroup = selTool && !( aCommitFlags & SKIP_ENTERED_GROUP ) ? selTool->GetEnteredGroup()
|
||||
: nullptr;
|
||||
// Notification info
|
||||
PICKED_ITEMS_LIST undoList;
|
||||
bool itemsDeselected = false;
|
||||
|
||||
Reference in New Issue
Block a user