From 557d49238438fa415bfc453179c89de0b2133ef9 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Wed, 18 Mar 2026 10:07:41 -0400 Subject: [PATCH] design blocks: don't apply nested groups This could be an improvement in the future, but for now it has too many issues, e.g. what happens if the user has already grouped those items? Fixes: https://gitlab.com/kicad/code/kicad/-/work_items/23471 --- pcbnew/tools/multichannel_tool.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/tools/multichannel_tool.cpp b/pcbnew/tools/multichannel_tool.cpp index a22b10c073..50c097c319 100644 --- a/pcbnew/tools/multichannel_tool.cpp +++ b/pcbnew/tools/multichannel_tool.cpp @@ -260,6 +260,10 @@ bool MULTICHANNEL_TOOL::findOtherItemsInRuleArea( RULE_AREA* aRuleArea, std::set if( item->Type() == PCB_FOOTPRINT_T ) continue; + // TODO: Preserve nested groups when applying design block layout. + if( item->Type() == PCB_GROUP_T ) + continue; + if( BOARD_ITEM* boardItem = dynamic_cast( item ) ) { if( !boardItem->IsConnected() || boardItem->Type() == PCB_ZONE_T )