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:
Seth Hillbrand 2022-01-10 10:53:51 -08:00
parent a399f799ad
commit 4907b90215
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ bool DIALOG_GRAPHIC_ITEM_PROPERTIES::Validate()
case SHAPE_T::CIRCLE:
// 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." ) );
break;