Update error message to match new arc dialog

We now provide arc end points and interior angle, so we cannot check for
null radius in the same fashion.  Instead, the starpoint==endpoint
indicates a zero radius

Fixes https://gitlab.com/kicad/code/kicad/issues/10714
This commit is contained in:
Seth Hillbrand 2022-02-03 14:30:44 -08:00
parent 7601a3385f
commit ef94f31204
1 changed files with 4 additions and 1 deletions

View File

@ -370,7 +370,10 @@ bool DIALOG_GRAPHIC_ITEM_PROPERTIES::Validate()
if( m_angle.GetValue() == 0 )
error_msgs.Add( _( "The arc angle cannot be zero." ) );
KI_FALLTHROUGH;
if( m_startX.GetValue() == m_endX.GetValue() && m_startY.GetValue() == m_endY.GetValue() )
error_msgs.Add( _( "The radius cannot be zero." ) );
break;
case SHAPE_T::CIRCLE:
// Check radius.