diff --git a/pcbnew/dialogs/dialog_track_via_size.cpp b/pcbnew/dialogs/dialog_track_via_size.cpp index 062ecbe6d7..60ef3e7ad4 100644 --- a/pcbnew/dialogs/dialog_track_via_size.cpp +++ b/pcbnew/dialogs/dialog_track_via_size.cpp @@ -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();