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:
Jeff Young
2025-12-09 17:38:17 +00:00
parent 68549b447a
commit 12cf83804f
3 changed files with 21 additions and 5 deletions
+2 -2
View File
@@ -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;