eeschema: Fix an issue with duplicate timestamps

Duplicating into a non-clone still doesn't get a new timestamp, so we
need to explicitly set it.
This commit is contained in:
Seth Hillbrand 2019-10-29 00:48:19 -07:00
parent 868ff5bb2c
commit bbf355a12f
1 changed files with 1 additions and 0 deletions

View File

@ -209,6 +209,7 @@ int SCH_DRAWING_TOOLS::PlaceComponent( const TOOL_EVENT& aEvent )
next_comp = static_cast<SCH_COMPONENT*>( component->Duplicate() );
next_comp->SetFlags( IS_NEW | IS_MOVED );
next_comp->SetUnit( new_unit );
next_comp->SetTimeStamp( GetNewTimeStamp() );
if( m_frame->GetAutoplaceFields() )
component->AutoplaceFields( /* aScreen */ NULL, /* aManual */ false );