Fix a compil warning (shadowed variable).

This commit is contained in:
jean-pierre charras 2023-11-10 10:31:40 +01:00
parent bfa9ea66cc
commit 2f594e441b
1 changed files with 2 additions and 2 deletions

View File

@ -644,9 +644,9 @@ PCB_SELECTION& PCB_SELECTION_TOOL::RequestSelection( CLIENT_SELECTION_FILTER aCl
bool lockedDescendant = false;
boardItem->RunOnDescendants(
[&]( BOARD_ITEM* item )
[&]( BOARD_ITEM* curr_item )
{
if( item->IsLocked() )
if( curr_item->IsLocked() )
lockedDescendant = true;
} );