Pad properties dlg: Clearing thermal relief override (gap/spoke) does not work

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20709
This commit is contained in:
jean-pierre charras 2025-04-20 11:05:21 +02:00
parent 86b17f46de
commit 1af76a9bef

View File

@ -1749,10 +1749,14 @@ bool DIALOG_PAD_PROPERTIES::transferDataToPad( PAD* aPad )
else else
aPad->SetLocalSolderPasteMarginRatio( m_pasteMarginRatio.GetDoubleValue() / 100.0 ); aPad->SetLocalSolderPasteMarginRatio( m_pasteMarginRatio.GetDoubleValue() / 100.0 );
if( !m_spokeWidth.IsNull() ) if( m_spokeWidth.IsNull() )
aPad->SetLocalThermalSpokeWidthOverride( {} );
else
aPad->SetLocalThermalSpokeWidthOverride( m_spokeWidth.GetIntValue() ); aPad->SetLocalThermalSpokeWidthOverride( m_spokeWidth.GetIntValue() );
if( !m_thermalGap.IsNull() ) if( m_thermalGap.IsNull() )
aPad->SetLocalThermalGapOverride( {} );
else
aPad->SetLocalThermalGapOverride( m_thermalGap.GetIntValue() ); aPad->SetLocalThermalGapOverride( m_thermalGap.GetIntValue() );
aPad->SetThermalSpokeAngle( m_spokeAngle.GetAngleValue() ); aPad->SetThermalSpokeAngle( m_spokeAngle.GetAngleValue() );