From 5ae6f93af880d75ac6aa59f2d5e79129ff227141 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 9 Jan 2021 13:42:35 +0000 Subject: [PATCH] A groups children may also have children. For instance, it could be a nested group or a footprint. Fixes https://gitlab.com/kicad/code/kicad/issues/7025 --- pcbnew/pcb_view.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/pcb_view.cpp b/pcbnew/pcb_view.cpp index ef9fff079c..5e6541d5ab 100644 --- a/pcbnew/pcb_view.cpp +++ b/pcbnew/pcb_view.cpp @@ -98,18 +98,18 @@ void PCB_VIEW::Update( const KIGFX::VIEW_ITEM* aItem, int aUpdateFlags ) const { const FOOTPRINT* footprint = static_cast( boardItem ); footprint->RunOnChildren( - [this, aUpdateFlags]( BOARD_ITEM* aModItem ) + [this, aUpdateFlags]( BOARD_ITEM* child ) { - VIEW::Update( aModItem, aUpdateFlags ); + VIEW::Update( child, aUpdateFlags ); } ); } else if( boardItem && boardItem->Type() == PCB_GROUP_T ) { const PCB_GROUP* group = static_cast( boardItem ); group->RunOnChildren( - [this, aUpdateFlags]( BOARD_ITEM* aModItem ) + [this, aUpdateFlags]( BOARD_ITEM* child ) { - VIEW::Update( aModItem, aUpdateFlags ); + Update( child, aUpdateFlags ); } ); }