From f49779465eb7f383e7dfe94fe0f48033149281f4 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sat, 1 Jun 2019 16:30:58 -0400 Subject: [PATCH] Fix broken build in array_creator --- pcbnew/array_creator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/array_creator.cpp b/pcbnew/array_creator.cpp index 0450a91dcd..22f32428bf 100644 --- a/pcbnew/array_creator.cpp +++ b/pcbnew/array_creator.cpp @@ -52,7 +52,7 @@ void ARRAY_CREATOR::Invoke() if( m_selection.Size() == 0 ) return; - MODULE* const module = m_editModules ? m_parent.GetBoard()->m_Modules.GetFirst() : nullptr; + MODULE* const module = m_editModules ? m_parent.GetBoard()->GetFirstModule() : nullptr; const bool enableArrayNumbering = m_editModules; const wxPoint rotPoint = (wxPoint) m_selection.GetCenter(); @@ -128,9 +128,9 @@ void ARRAY_CREATOR::Invoke() if( this_item->Type() == PCB_MODULE_T ) { - static_cast( this_item )->RunOnChildren( [&] ( BOARD_ITEM* item ) + static_cast( this_item )->RunOnChildren( [&] ( BOARD_ITEM* aItem ) { - item->ClearSelected(); + aItem->ClearSelected(); }); }