From 4907b9021590cf8793159ad869415d6054a25576 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 10 Jan 2022 10:53:51 -0800 Subject: [PATCH] Fix FP circle validity check Radius is encoded by m_endX Fixes https://gitlab.com/kicad/code/kicad/issues/10337 --- pcbnew/dialogs/dialog_graphic_item_properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/dialogs/dialog_graphic_item_properties.cpp b/pcbnew/dialogs/dialog_graphic_item_properties.cpp index 74c8d7a674..5037d560f8 100644 --- a/pcbnew/dialogs/dialog_graphic_item_properties.cpp +++ b/pcbnew/dialogs/dialog_graphic_item_properties.cpp @@ -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;