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:
parent
168ad58eef
commit
6905cfb95b
|
@ -428,7 +428,10 @@ bool DIALOG_GRAPHIC_ITEM_PROPERTIES::Validate()
|
||||||
if( m_angle.GetAngleValue() == ANGLE_0 )
|
if( m_angle.GetAngleValue() == ANGLE_0 )
|
||||||
error_msgs.Add( _( "The arc angle cannot be zero." ) );
|
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:
|
case SHAPE_T::CIRCLE:
|
||||||
// Check radius.
|
// Check radius.
|
||||||
|
|
Loading…
Reference in New Issue