Fix circle scaling

We scale the full circle, which is just defined by its points

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21551
This commit is contained in:
Seth Hillbrand
2025-08-25 18:03:46 -07:00
parent 9013ddae43
commit 1df5ad0e4c
+1 -6
View File
@@ -748,16 +748,11 @@ void EDA_SHAPE::scale( double aScale )
case SHAPE_T::SEGMENT:
case SHAPE_T::RECTANGLE:
case SHAPE_T::CIRCLE:
scalePt( m_start );
scalePt( m_end );
break;
case SHAPE_T::CIRCLE: // ring or circle
scalePt( m_start );
m_end.x = m_start.x + KiROUND( GetRadius() * aScale );
m_end.y = m_start.y;
break;
case SHAPE_T::POLY: // polygon
{
std::vector<VECTOR2I> pts;