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:
Jeff Young 2020-08-18 16:45:20 +01:00
parent f2a902c0b1
commit 8a4b7bd9c8
1 changed files with 2 additions and 2 deletions

View File

@ -330,12 +330,12 @@ float SCH_PAINTER::getLineWidth( const SCH_ITEM* aItem, bool aDrawingShadows )
{
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 )
width += getShadowWidth();
return width;
return std::max( width, 1.0f );
}