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
This commit is contained in:
Seth Hillbrand 2023-12-08 13:31:13 -08:00
parent e3c9cf94b7
commit 0db362a907
1 changed files with 2 additions and 2 deletions

View File

@ -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 );