From f7ea9f9136abc17971cb80e3d7e2fa2f38a4f147 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 9 Jul 2015 13:35:50 +0200 Subject: [PATCH] DIALOG_TRACK_VIA_SIZE does not allow to set 0 for track width or via diameter/drill. --- pcbnew/dialogs/dialog_track_via_size.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();