Don't use last-resolved caches for graphic lines.
Fixes https://gitlab.com/kicad/code/kicad/issues/11127
This commit is contained in:
parent
32fdab8902
commit
38cde901b0
|
@ -241,13 +241,20 @@ COLOR4D SCH_LINE::GetLineColor() const
|
|||
{
|
||||
m_lastResolvedColor = m_stroke.GetColor();
|
||||
}
|
||||
else if( IsConnectable() && !IsConnectivityDirty() )
|
||||
else if( IsConnectable() )
|
||||
{
|
||||
if( !IsConnectivityDirty() )
|
||||
{
|
||||
NETCLASSPTR netclass = NetClass();
|
||||
|
||||
if( netclass )
|
||||
m_lastResolvedColor = netclass->GetSchematicColor();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_lastResolvedColor = COLOR4D::UNSPECIFIED;
|
||||
}
|
||||
|
||||
return m_lastResolvedColor;
|
||||
}
|
||||
|
@ -292,13 +299,20 @@ PLOT_DASH_TYPE SCH_LINE::GetEffectiveLineStyle() const
|
|||
{
|
||||
m_lastResolvedLineStyle = m_stroke.GetPlotStyle();
|
||||
}
|
||||
else if( IsConnectable() && !IsConnectivityDirty() )
|
||||
else if( IsConnectable() )
|
||||
{
|
||||
if( !IsConnectivityDirty() )
|
||||
{
|
||||
NETCLASSPTR netclass = NetClass();
|
||||
|
||||
if( netclass )
|
||||
m_lastResolvedLineStyle = static_cast<PLOT_DASH_TYPE>( netclass->GetLineStyle() );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_lastResolvedLineStyle = PLOT_DASH_TYPE::DASH;
|
||||
}
|
||||
|
||||
return m_lastResolvedLineStyle;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue