Eeschema: Return null in case of canceling placement

This commit is contained in:
Seth Hillbrand 2020-01-11 17:02:55 -08:00
parent b343391723
commit 84d5d6c168
1 changed files with 3 additions and 2 deletions

View File

@ -339,9 +339,10 @@ LIB_PIN* LIB_PIN_TOOL::RepeatPin( const LIB_PIN* aSourcePin )
if( m_frame->SynchronizePins() )
pin->SetFlags( IS_LINKED );
PlacePin( pin );
if( PlacePin( pin ) )
return pin;
return pin;
return nullptr;
}