DIALOG_TRACK_VIA_SIZE does not allow to set 0 for track width or via diameter/drill.

This commit is contained in:
Maciej Suminski 2015-07-09 13:35:50 +02:00
parent 13739217b8
commit f7ea9f9136
1 changed files with 3 additions and 3 deletions

View File

@ -59,21 +59,21 @@ DIALOG_TRACK_VIA_SIZE::DIALOG_TRACK_VIA_SIZE( wxWindow* aParent, BOARD_DESIGN_SE
bool DIALOG_TRACK_VIA_SIZE::check()
{
if( m_trackWidth.GetValue() < 0 )
if( m_trackWidth.GetValue() <= 0 )
{
DisplayError( GetParent(), _( "Invalid track width" ) );
m_trackWidthText->SetFocus();
return false;
}
if( m_viaDiameter.GetValue() < 0 )
if( m_viaDiameter.GetValue() <= 0 )
{
DisplayError( GetParent(), _( "Invalid via diameter" ) );
m_viaDiameterText->SetFocus();
return false;
}
if( m_viaDrill.GetValue() < 0 )
if( m_viaDrill.GetValue() <= 0 )
{
DisplayError( GetParent(), _( "Invalid via drill size" ) );
m_viaDrillText->SetFocus();