Clear new flag when creating image pins.

Otherwise if you then move it we'll think it needs to be inserted
and end up with a circular drawings list.

Fixes https://gitlab.com/kicad/code/kicad/issues/4622
This commit is contained in:
Jeff Young 2020-07-16 01:21:50 +01:00
parent e8079bf655
commit 11ca21039a
1 changed files with 1 additions and 0 deletions

View File

@ -281,6 +281,7 @@ void LIB_PIN_TOOL::CreateImagePins( LIB_PIN* aPin )
newPin->SetUnit( ii );
aPin->GetParent()->AddDrawItem( newPin );
newPin->ClearFlags( IS_NEW );
}
}