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:
parent
e24c671fc5
commit
6165fd2be5
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue