Fix bug: Cross-probing of pins to pads selects entire footprint instead of desired pad.

Fixes #3791
https://gitlab.com/kicad/code/kicad/issues/3791
This commit is contained in:
jean-pierre charras 2020-01-20 18:35:20 +01:00
parent 974f84a5a6
commit dd46a918a8
1 changed files with 5 additions and 1 deletions

View File

@ -167,8 +167,12 @@ void PCB_EDIT_FRAME::ExecuteRemoteCommand( const char* cmdline )
if( module )
{
m_toolManager->RunAction( PCB_ACTIONS::highlightItem, true, (void*) module );
bbox = module->GetBoundingBox();
if( pad )
m_toolManager->RunAction( PCB_ACTIONS::highlightItem, true, (void*) pad );
else
m_toolManager->RunAction( PCB_ACTIONS::highlightItem, true, (void*) module );
}
else if( netcode > 0 )
{