Convert selection vector to EDA_ITEMS for base tool call
The base tool expects a generic EDA_ITEMS, but the existing vector doesn't easily cast, so add a temporary one.
This commit is contained in:
@@ -2229,7 +2229,8 @@ int EDIT_TOOL::Duplicate( const TOOL_EVENT& aEvent )
|
||||
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
|
||||
|
||||
// Select the new items
|
||||
m_toolMgr->RunAction( PCB_ACTIONS::selectItems, true, &new_items );
|
||||
EDA_ITEMS nItems( new_items.begin(), new_items.end() );
|
||||
m_toolMgr->RunAction<EDA_ITEMS*>( PCB_ACTIONS::selectItems, true, &nItems );
|
||||
|
||||
// record the new items as added
|
||||
if( !selection.Empty() )
|
||||
|
||||
Reference in New Issue
Block a user