Fix FP circle validity check

Radius is encoded by m_endX

Fixes https://gitlab.com/kicad/code/kicad/issues/10337

(cherry picked from commit 4907b90215)
This commit is contained in:
Seth Hillbrand 2022-01-10 10:53:51 -08:00
parent e24c671fc5
commit 6165fd2be5
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,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;