Don't clamp arc centers quite so aggressively.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16029

(cherry picked from commit 24ca7add42)
This commit is contained in:
Jeff Young 2023-11-06 00:43:41 +00:00
parent 81ba4fa9a6
commit acd7d5ad2f
1 changed files with 4 additions and 4 deletions

View File

@ -478,13 +478,13 @@ const VECTOR2I CalcArcCenter( const VECTOR2I& aStart, const VECTOR2I& aMid, cons
VECTOR2I iCenter; VECTOR2I iCenter;
iCenter.x = KiROUND( Clamp<double>( double( std::numeric_limits<int>::min() / 2.0 ), iCenter.x = KiROUND( Clamp<double>( double( std::numeric_limits<int>::min() + 100 ),
dCenter.x, dCenter.x,
double( std::numeric_limits<int>::max() / 2.0 ) ) ); double( std::numeric_limits<int>::max() - 100 ) ) );
iCenter.y = KiROUND( Clamp<double>( double( std::numeric_limits<int>::min() / 2.0 ), iCenter.y = KiROUND( Clamp<double>( double( std::numeric_limits<int>::min() + 100 ),
dCenter.y, dCenter.y,
double( std::numeric_limits<int>::max() / 2.0 ) ) ); double( std::numeric_limits<int>::max() - 100 ) ) );
return iCenter; return iCenter;
} }