diff --git a/pcbnew/padstack.cpp b/pcbnew/padstack.cpp index 5a6745eb17..4635f34017 100644 --- a/pcbnew/padstack.cpp +++ b/pcbnew/padstack.cpp @@ -540,10 +540,10 @@ void PADSTACK::ClearPrimitives( PCB_LAYER_ID aLayer ) std::optional PADSTACK::IsTented( PCB_LAYER_ID aSide ) const { if( IsFrontLayer( aSide ) ) - return m_frontMaskProps.has_solder_mask; + return !m_frontMaskProps.has_solder_mask; if( IsBackLayer( aSide ) ) - return m_backMaskProps.has_solder_mask; + return !m_backMaskProps.has_solder_mask; wxCHECK_MSG( false, std::nullopt, "IsTented expects a front or back layer" ); }