pcbnew: netlist import interactive edit fix
When importing a netlist with no changes, do not select the part under the cursor.
This commit is contained in:
parent
41223a81d3
commit
896bd3945d
|
@ -123,12 +123,14 @@ void PCB_EDIT_FRAME::ReadPcbNetlist( const wxString& aNetlistFileName,
|
||||||
if( IsGalCanvasActive() )
|
if( IsGalCanvasActive() )
|
||||||
{
|
{
|
||||||
SpreadFootprints( &newFootprints, false, false );
|
SpreadFootprints( &newFootprints, false, false );
|
||||||
|
if( !newFootprints.empty() )
|
||||||
BOOST_FOREACH( MODULE* footprint, newFootprints )
|
|
||||||
{
|
{
|
||||||
m_toolManager->RunAction( COMMON_ACTIONS::selectItem, true, footprint );
|
BOOST_FOREACH( MODULE* footprint, newFootprints )
|
||||||
|
{
|
||||||
|
m_toolManager->RunAction( COMMON_ACTIONS::selectItem, true, footprint );
|
||||||
|
}
|
||||||
|
m_toolManager->InvokeTool( "pcbnew.InteractiveEdit" );
|
||||||
}
|
}
|
||||||
m_toolManager->InvokeTool( "pcbnew.InteractiveEdit" );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
OnModify();
|
OnModify();
|
||||||
|
@ -327,4 +329,4 @@ void PCB_EDIT_FRAME::LoadFootprints( NETLIST& aNetlist, REPORTER* aReporter )
|
||||||
if( loadFootprint && module != NULL )
|
if( loadFootprint && module != NULL )
|
||||||
component->SetModule( module );
|
component->SetModule( module );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue