diff --git a/pcbnew/class_drawsegment.h b/pcbnew/class_drawsegment.h index 0e3b273ba8..60e87fbe93 100644 --- a/pcbnew/class_drawsegment.h +++ b/pcbnew/class_drawsegment.h @@ -149,7 +149,9 @@ public: int GetRadius() const { double radius = GetLineLength( m_Start, m_End ); - return KiROUND( radius ); + + // don't allow degenerate arcs + return std::max( 1, KiROUND( radius ) ); } /**