Browse Source

Fix bug where default courtyard outline set to 0

The defaults are stored in mm, this needs to be converted to IU for
proper use in pcbnew
newinvert
Seth Hillbrand 2 years ago
parent
commit
0db362a907
  1. 4
      pcbnew/footprint.cpp

4
pcbnew/footprint.cpp

@ -2547,7 +2547,7 @@ void FOOTPRINT::BuildCourtyardCaches( OUTLINE_ERROR_HANDLER* aErrorHandler )
width = max->first;
if( width == 0 )
width = DEFAULT_COURTYARD_WIDTH;
width = pcbIUScale.mmToIU( DEFAULT_COURTYARD_WIDTH );
if( m_courtyard_cache_front.OutlineCount() > 0 )
m_courtyard_cache_front.Outline( 0 ).SetWidth( width );
@ -2576,7 +2576,7 @@ void FOOTPRINT::BuildCourtyardCaches( OUTLINE_ERROR_HANDLER* aErrorHandler )
width = max->first;
if( width == 0 )
width = DEFAULT_COURTYARD_WIDTH;
width = pcbIUScale.mmToIU( DEFAULT_COURTYARD_WIDTH );
if( m_courtyard_cache_back.OutlineCount() > 0 )
m_courtyard_cache_back.Outline( 0 ).SetWidth( width );

Loading…
Cancel
Save