From 16d5c43c14e05a5ee0a01d0049c496859acbd474 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 25 Sep 2022 22:04:56 +0100 Subject: [PATCH] Fix shadowed variable. --- pcbnew/undo_redo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/undo_redo.cpp b/pcbnew/undo_redo.cpp index 32ea033db9..1b2a96d2c0 100644 --- a/pcbnew/undo_redo.cpp +++ b/pcbnew/undo_redo.cpp @@ -477,7 +477,7 @@ void PCB_BASE_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList ) if( item->Type() == PCB_GROUP_T ) { - PCB_GROUP* group = static_cast( item ); + group = static_cast( item ); group->RunOnChildren( [&]( BOARD_ITEM* child ) {