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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user