DIALOG_TRACK_VIA_SIZE does not allow to set 0 for track width or via diameter/drill.
This commit is contained in:
parent
13739217b8
commit
f7ea9f9136
|
@ -59,21 +59,21 @@ DIALOG_TRACK_VIA_SIZE::DIALOG_TRACK_VIA_SIZE( wxWindow* aParent, BOARD_DESIGN_SE
|
||||||
|
|
||||||
bool DIALOG_TRACK_VIA_SIZE::check()
|
bool DIALOG_TRACK_VIA_SIZE::check()
|
||||||
{
|
{
|
||||||
if( m_trackWidth.GetValue() < 0 )
|
if( m_trackWidth.GetValue() <= 0 )
|
||||||
{
|
{
|
||||||
DisplayError( GetParent(), _( "Invalid track width" ) );
|
DisplayError( GetParent(), _( "Invalid track width" ) );
|
||||||
m_trackWidthText->SetFocus();
|
m_trackWidthText->SetFocus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_viaDiameter.GetValue() < 0 )
|
if( m_viaDiameter.GetValue() <= 0 )
|
||||||
{
|
{
|
||||||
DisplayError( GetParent(), _( "Invalid via diameter" ) );
|
DisplayError( GetParent(), _( "Invalid via diameter" ) );
|
||||||
m_viaDiameterText->SetFocus();
|
m_viaDiameterText->SetFocus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_viaDrill.GetValue() < 0 )
|
if( m_viaDrill.GetValue() <= 0 )
|
||||||
{
|
{
|
||||||
DisplayError( GetParent(), _( "Invalid via drill size" ) );
|
DisplayError( GetParent(), _( "Invalid via drill size" ) );
|
||||||
m_viaDrillText->SetFocus();
|
m_viaDrillText->SetFocus();
|
||||||
|
|
Loading…
Reference in New Issue