Eeschema: do not leave a temporary flag set after use in draw symbol function.

Fixes #11617
https://gitlab.com/kicad/code/kicad/issues/11617
This commit is contained in:
jean-pierre charras 2022-05-15 18:31:23 +02:00
parent 9049c907a1
commit 359c99991b
1 changed files with 1 additions and 0 deletions

View File

@ -2121,6 +2121,7 @@ void SCH_PAINTER::draw( SCH_SYMBOL* aSymbol, int aLayer )
LIB_PIN* tempPin = tempPins[ i ];
symbolPin->ClearFlags();
tempPin->ClearFlags( IS_DANGLING ); // Clear this temporary flag
symbolPin->SetFlags( tempPin->GetFlags() ); // SELECTED, HIGHLIGHTED, BRIGHTENED,
// IS_SHOWN_AS_BITMAP
}