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

(cherry picked from commit ef94f31204)
This commit is contained in:
Seth Hillbrand 2022-02-03 14:30:44 -08:00
parent 168ad58eef
commit 6905cfb95b
1 changed files with 4 additions and 1 deletions

View File

@ -428,7 +428,10 @@ bool DIALOG_GRAPHIC_ITEM_PROPERTIES::Validate()
if( m_angle.GetAngleValue() == ANGLE_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.