SCH_FIELD: fix issue when try to clear its color from a previous color,

the old color was still used to display the field
Fixes #13631
https://gitlab.com/kicad/code/kicad/issues/13631
This commit is contained in:
jean-pierre charras 2023-01-23 10:22:42 +01:00
parent e0111f709b
commit 2443d91265
1 changed files with 2 additions and 0 deletions

View File

@ -415,6 +415,8 @@ COLOR4D SCH_FIELD::GetFieldColor() const
if( parentLabel && !parentLabel->IsConnectivityDirty() )
m_lastResolvedColor = parentLabel->GetEffectiveNetClass()->GetSchematicColor();
else
m_lastResolvedColor = GetTextColor();
}
return m_lastResolvedColor;