From 85f4ab39449224c778ebebee7f8fda3f77839b7c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 29 Dec 2023 16:41:59 +0000 Subject: [PATCH] Attempt to fix borked build.... --- .../panel_board_stackup.cpp | 2 +- pcbnew/tools/edit_tool_move_fct.cpp | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/pcbnew/board_stackup_manager/panel_board_stackup.cpp b/pcbnew/board_stackup_manager/panel_board_stackup.cpp index ffeaa5059e..e6a3095931 100644 --- a/pcbnew/board_stackup_manager/panel_board_stackup.cpp +++ b/pcbnew/board_stackup_manager/panel_board_stackup.cpp @@ -120,7 +120,7 @@ PANEL_SETUP_BOARD_STACKUP::PANEL_SETUP_BOARD_STACKUP( wxWindow* aParentWindow, synchronizeWithBoard( true ); computeBoardThickness(); - m_frame->Bind( EDA_EVT_UNITS_CHANGED, &PANEL_SETUP_BOARD_STACKUP::onUnitsChanged, this ); + m_frame->Bind( UNITS_CHANGED, &PANEL_SETUP_BOARD_STACKUP::onUnitsChanged, this ); } diff --git a/pcbnew/tools/edit_tool_move_fct.cpp b/pcbnew/tools/edit_tool_move_fct.cpp index a4aea70bcb..308c9b840d 100644 --- a/pcbnew/tools/edit_tool_move_fct.cpp +++ b/pcbnew/tools/edit_tool_move_fct.cpp @@ -653,12 +653,16 @@ int EDIT_TOOL::doMoveSelection( const TOOL_EVENT& aEvent, const wxString& aCommi if( item->Type() == PCB_FOOTPRINT_T ) FPs.push_back( static_cast( item ) ); - item->RunOnDescendants( - [&]( BOARD_ITEM* descendent ) - { - if( descendent->Type() == PCB_FOOTPRINT_T ) - FPs.push_back( static_cast( descendent ) ); - } ); + if( item->Type() == PCB_GROUP_T ) + { + PCB_GROUP* group = static_cast( item ); + group->RunOnDescendants( + [&]( BOARD_ITEM* descendent ) + { + if( descendent->Type() == PCB_FOOTPRINT_T ) + FPs.push_back( static_cast( descendent ) ); + } ); + } } }