Repair wire-width calculation routine.
Netclass handling has been move to GetPenWidth() so it's no longer just a "1" that we can do a std::max against. Fixes https://gitlab.com/kicad/code/kicad/issues/5249
This commit is contained in:
parent
f2a902c0b1
commit
8a4b7bd9c8
|
@ -330,12 +330,12 @@ float SCH_PAINTER::getLineWidth( const SCH_ITEM* aItem, bool aDrawingShadows )
|
||||||
{
|
{
|
||||||
wxCHECK( aItem, static_cast<float>( m_schSettings.m_DefaultWireThickness ) );
|
wxCHECK( aItem, static_cast<float>( m_schSettings.m_DefaultWireThickness ) );
|
||||||
|
|
||||||
float width = (float) std::max( aItem->GetPenWidth(), m_schSettings.GetDefaultPenWidth() );
|
float width = (float) aItem->GetPenWidth();
|
||||||
|
|
||||||
if( aItem->IsSelected() && aDrawingShadows )
|
if( aItem->IsSelected() && aDrawingShadows )
|
||||||
width += getShadowWidth();
|
width += getShadowWidth();
|
||||||
|
|
||||||
return width;
|
return std::max( width, 1.0f );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue