Eeschema: Return null in case of canceling placement
This commit is contained in:
parent
b343391723
commit
84d5d6c168
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue