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:
parent
7601a3385f
commit
ef94f31204
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue