Don't require callers to jump through hoops.

Fixes KICAD-Y6J.
Fixes KICAD-Y6H.
Fixes KICAD-Y6G.
This commit is contained in:
Jeff Young
2025-07-31 15:58:49 +01:00
parent b0663d84cb
commit 736d3c2d26
3 changed files with 36 additions and 75 deletions
+3 -3
View File
@@ -1358,7 +1358,7 @@ std::optional<bool> PADSTACK::IsTented( PCB_LAYER_ID aSide ) const
if( IsBackLayer( aSide ) )
return m_backMaskProps.has_solder_mask;
wxCHECK_MSG( false, std::nullopt, "IsTented expects a front or back layer" );
return false;
}
std::optional<bool> PADSTACK::IsCovered( PCB_LAYER_ID aSide ) const
@@ -1369,7 +1369,7 @@ std::optional<bool> PADSTACK::IsCovered( PCB_LAYER_ID aSide ) const
if( IsBackLayer( aSide ) )
return m_backMaskProps.has_covering;
wxCHECK_MSG( false, std::nullopt, "IsCovered expects a front or back layer" );
return false;
}
std::optional<bool> PADSTACK::IsPlugged( PCB_LAYER_ID aSide ) const
@@ -1380,7 +1380,7 @@ std::optional<bool> PADSTACK::IsPlugged( PCB_LAYER_ID aSide ) const
if( IsBackLayer( aSide ) )
return m_backMaskProps.has_plugging;
wxCHECK_MSG( false, std::nullopt, "IsPlugged expects a front or back layer" );
return false;
}
std::optional<bool> PADSTACK::IsCapped() const