From 0db362a90763356ea3463a70f94f17ba11027697 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 8 Dec 2023 13:31:13 -0800 Subject: [PATCH] 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 --- pcbnew/footprint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/footprint.cpp b/pcbnew/footprint.cpp index e616d1846d..3de068ca68 100644 --- a/pcbnew/footprint.cpp +++ b/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 );