Fix one click dialog footprint spreading picking up extra footprints.

This commit is contained in:
Jon Neal 2016-03-17 23:09:24 -04:00 committed by Chris Pavlina
parent 1c19699a7c
commit d66cc0fedc
1 changed files with 6 additions and 3 deletions

View File

@ -110,11 +110,14 @@ void DIALOG_UPDATE_PCB::PerformUpdate( bool aDryRun )
{
m_frame->SpreadFootprints( &newFootprints, false, false );
BOOST_FOREACH( MODULE* footprint, newFootprints )
if( !newFootprints.empty() )
{
toolManager->RunAction( COMMON_ACTIONS::selectItem, true, footprint );
BOOST_FOREACH( MODULE* footprint, newFootprints )
{
toolManager->RunAction( COMMON_ACTIONS::selectItem, true, footprint );
}
toolManager->InvokeTool( "pcbnew.InteractiveEdit" );
}
toolManager->InvokeTool( "pcbnew.InteractiveEdit" );
}