Arc Track Drag & Fillet Tracks: Copy lock status to new track(s)

This commit is contained in:
Roberto Fernandez Bautista 2021-07-05 20:10:05 +01:00
parent 72435c78af
commit ce8132bf4f
1 changed files with 2 additions and 0 deletions

View File

@ -408,6 +408,7 @@ int EDIT_TOOL::DragArcTrack( const TOOL_EVENT& aEvent )
retval->SetNet( theArc->GetNet() );
retval->SetLayer( theArc->GetLayer() );
retval->SetWidth( theArc->GetWidth() );
retval->SetLocked( theArc->IsLocked() );
retval->SetFlags( IS_NEW );
getView()->Add( retval );
}
@ -1330,6 +1331,7 @@ int EDIT_TOOL::FilletTracks( const TOOL_EVENT& aEvent )
tArc->SetLayer( track1->GetLayer() );
tArc->SetWidth( track1->GetWidth() );
tArc->SetNet( track1->GetNet() );
tArc->SetLocked( track1->IsLocked() );
m_commit->Add( tArc );
itemsToAddToSelection.push_back( tArc );