DIALOG_PAD_PROPERTIES: fix a incorrect test to show a warning.

This commit is contained in:
jean-pierre charras 2024-03-02 17:15:08 +01:00
parent 1082930c34
commit d81605f4ea
1 changed files with 1 additions and 1 deletions

View File

@ -1302,7 +1302,7 @@ bool DIALOG_PAD_PROPERTIES::padValuesOK()
}
}
if( m_previewPad->GetLocalClearance() < 0 )
if( m_previewPad->GetLocalClearance().value_or( 0 ) < 0 )
warning_msgs.Add( _( "Warning: Negative local clearance values will have no effect." ) );
// Some pads need a negative solder mask clearance (mainly for BGA with small pads)