Fix FP circle validity check
Radius is encoded by m_endX Fixes https://gitlab.com/kicad/code/kicad/issues/10337
This commit is contained in:
parent
a399f799ad
commit
4907b90215
|
@ -374,7 +374,7 @@ bool DIALOG_GRAPHIC_ITEM_PROPERTIES::Validate()
|
||||||
|
|
||||||
case SHAPE_T::CIRCLE:
|
case SHAPE_T::CIRCLE:
|
||||||
// Check radius.
|
// Check radius.
|
||||||
if( m_startX.GetValue() == m_endX.GetValue() && m_startY.GetValue() == m_endY.GetValue() )
|
if( m_endX.GetValue() == 0 )
|
||||||
error_msgs.Add( _( "The radius cannot be zero." ) );
|
error_msgs.Add( _( "The radius cannot be zero." ) );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue